Forum Discussion
3 Replies
- AlexKarasCommunity HeroHi David,
These three bytes are a signature (http://en.wikipedia.org/wiki/Byte_order_mark) that the file is in Unicode format (as specified in your code). So the behaviour seems to be correct. - shrapNew ContributorOops. I must look dumb now ;) However, our application does not write BOM into UTF-8 files (since it is not mandatory) and thus when I compare such two files, these 3 chars are extra. I suppose there is no way how to tell TC not to write these 3 bytes, is it?
- AlexKarasCommunity HeroHi David,
Try
aqFile.WriteToTextFile("c:\\tmp.txt","text",aqFile.ctANSI);