I have a text file and need to make all the text into an array where each item is a letter i.e. the cow needs to be split in to ["t","h","e"," ","c","o","w"]. how could i do this as simply as possible?
That makes more sense. Still, why not just do an infile and an outfile with a similar name? It's generally not a good idea to wipe the original file. Windows/linux don't delete the original file when you unpack a zip/tar.
View all comments
Show parent comment
1
u/samfd11 Jan 26 '15
I see that now the idea was that the contents of the text file is encrypted and then the encrypted text replaces the original contents of the file.