M
Mike Cooper
Hi everyone,
I am using vb.net to edit the ascii code of a print stream directly.
Why am I doing this? It's complicated but its something my boss
needs. I am successfully using Streamreader to read all of the data
into a string:
Dim FixFile_StreamReader as StreamReader
FixFile_StreamReader = File.OpenText(MyOldFile)
FileString = FixFile_StreamReader.ReadToEnd
FixFile_StreamReader.Close()
This produces a string ("FileString") which is 237839 bytes long. I
am making my changes to this string and then attempting to write this
string back into a new file. This is where I am having problems. The
new file is exactly the same size as the old, but the data in it is
convoluted; a few similarlities, but mostly trash.
The Streamwriter is set up for ascii encoding. Beyond that I have no
idea what else to try. Can anyone help?
thank you,
Mike Cooper
I am using vb.net to edit the ascii code of a print stream directly.
Why am I doing this? It's complicated but its something my boss
needs. I am successfully using Streamreader to read all of the data
into a string:
Dim FixFile_StreamReader as StreamReader
FixFile_StreamReader = File.OpenText(MyOldFile)
FileString = FixFile_StreamReader.ReadToEnd
FixFile_StreamReader.Close()
This produces a string ("FileString") which is 237839 bytes long. I
am making my changes to this string and then attempting to write this
string back into a new file. This is where I am having problems. The
new file is exactly the same size as the old, but the data in it is
convoluted; a few similarlities, but mostly trash.
The Streamwriter is set up for ascii encoding. Beyond that I have no
idea what else to try. Can anyone help?
thank you,
Mike Cooper