Re: Saving to a text file
Re: Saving to a text file
Quote:
I want to save the output to a text file as it has unicode so I will be able to see what the symbols are
What program are you using to look at the text file? That can determine what you see in its display.
On Windows have you ever created a Unicode text file using Wordpad? Try it and then look at the first bytes of the file. There are some flag bytes there that tell Wordpad about the file's contents.
For example,here is a text file (split into 4 char units) in Unicode format:
FFFE 5400 6800 6900 7300 2000 6900 7300 2000 7500 6E00 6900 6300 6F00 6400 6500 2E00
Re: Saving to a text file
Wow I did not know of the Files class.. thanks for making me google it :) They finally made a set of helper methods xD