I try to write a program which can (de-) cipher files. But I figured out that UNIX and Windows uses different methods to make new lines.
I'm affraid that my program wouldn't be platform independent when you cipher a file on Windows and decipher it on UNIX. Any solution?
Open the file in binary mode.