
Reading full text file (via FSO) when file contains char code 0's
How do you read the entire contents of a text file when that file has char
code 0's in the middle of it? Using ReadAll() on a TextStream object reads
all of the text file up to the null chars, then none thereafter.
objContent = objFSO.OpenTextFile(fileName, FORREADING, NOTOUCH);
if (!objContent.atEndOfStream) fileContent = objContent.ReadAll();
I had half thought of XMLHTTP, however, the file is not on a servable path
and that appears to err XMLHTTP.
Anyone any thoughts on a solution, an alternative method or a work around?
--
Andrew U
o-----------------------
http://www.*-*-*.com/