I'm seeing what appears to be a weird behavior using the ReadLine method of a TextStream object. The data file is a little funky in that it's UNIX format and, evidently, the COBOL guys who must have made it use hex 00 (null) as their filler character for unused 'fields'. I have to do a bunch of reformatting -- e.g. replace lf with cr+lf and the hex 00s with spaces -- which is pretty straightforward but I noticed records were getting trashed (i.e. swaths of needed text were getting replaced with spaces). I figured my RegExp.Replace had run amuck. But, when I broke it down, it appears to be ReadLine that's misbehaving because when I simply ReadLine my input stream, then WriteLine my output stream -- doing nothing in between -- a bunch of new hex 00 appear where text was before! And it all starts where it encounters the 1st hex 00. The funny thing is, the latter portion of the 'record' is fine! Anybody gotten grief from these hex 00s and ReadLine/WriteLine??? Any ideas how to overcome? Thanx in advance!
mc
mc