[windev] Problem reading text files
truckleaj-windev@yahoo.co.uk
truckleaj-windev at yahoo.co.uk
Sat Mar 28 15:05:41 GMT 2009
Hello
I am using CStdioFile to read a text file, line by line, doing some process=
ing on each line, and then adding the resulting CString into a new CStdioFi=
le.
In all respects it is very basic coding.=A0 The problem lies in the fact th=
at if the file is unicode and not ANSI, that the CStdioFile reads in the by=
teorder mark. This ends up as gibberish in my resulting file which is a HTM=
L file.
The file being merged into the HTML is essentially CSS content information.=
However it is possible that the usre might put some language specific deta=
il in there in one or two of the javascript methods. So they *might* end up=
changing the file to unicode. In which case I'll get the same problem agai=
n.
What can I do? Ideally I want to be able to use CStsioFile with any of thes=
e files and read in all the lines a CString objects. My application is unic=
ode so it should be able to deal with it.
Please advise. Thanks.
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.windev.org/pipermail/windev/attachments/20090328/0487f52e=
/attachment.htm
More information about the Windev
mailing list