Skip to content

Instantly share code, notes, and snippets.

@Robotto
Created December 17, 2024 09:50
Show Gist options
  • Save Robotto/af2710ac01a614727cb74e855c20b8fb to your computer and use it in GitHub Desktop.
Save Robotto/af2710ac01a614727cb74e855c20b8fb to your computer and use it in GitHub Desktop.
læs fra en fil, skriv til en fil.
def kryptoFakeStuff(msg):
return msg
messages=[]
with open("input.txt", "r") as file:
for line in file:
messages.append(line.strip())
with open("ciphers.txt", "w") as file:
for message in messages:
#do the thing with the thing
cipher=kryptoFakeStuff(message)
file.write(cipher+'\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment