>It depends
>
>A file is a sequence of bytes and can be any of 3 types
>
>(1) purely binary, eg image
>
>(2) Text. In that case you have to know the encoding ( any of single byte char encodings, any of the double byte chat encodings, utf-8, utf-16 little endian, utf16 big endian, utf-32 little endian, utf32 big endian) before you can convert the byte sequences into chars. Some times there is the BOM at the beginning of the file, sometimes not
>
>(3) Mixed type, eg a database file, a word document, ...
>In there there will be binary data (control bytes that indicate a length, the type that follows) and text
>
>If you want to be on the safe side to read the file into memory - and perhaps output it again with another name), treat the file as a sequence of bytes
>
>In that case you would have, either FileToByteArray() or FileToMemoryStream()
Thanks, I guess I will leave it as is for now.