J
J M
Hi,
I'm working on a program that writes data to a DOS-file (a file that is to
be read by a DOS-program), thus using codepage 437.
When writing to a binary file there was no problem at all, I just used
GetEncoder(437) to write the byte arrays to the file.
But I also have to write to a sequential file. WriteLine doesn't support
byte arrays.
I ended up first encoding the strings to byte arrays, writing them to a
binary file, opening that binary file as a sequential file, reading the byte
arrays as strings again and then writing the records (containing a.o. those
strings) back to the sequential file I finally needed.
I hate this method. It takes way to long (I'm talking about over 20000
records)!
Is there any way that I can convert the unicode strings directly to codepage
437 and writing them to a sequential file????
Thanks in advance...
JF Mous
I'm working on a program that writes data to a DOS-file (a file that is to
be read by a DOS-program), thus using codepage 437.
When writing to a binary file there was no problem at all, I just used
GetEncoder(437) to write the byte arrays to the file.
But I also have to write to a sequential file. WriteLine doesn't support
byte arrays.
I ended up first encoding the strings to byte arrays, writing them to a
binary file, opening that binary file as a sequential file, reading the byte
arrays as strings again and then writing the records (containing a.o. those
strings) back to the sequential file I finally needed.
I hate this method. It takes way to long (I'm talking about over 20000
records)!
Is there any way that I can convert the unicode strings directly to codepage
437 and writing them to a sequential file????
Thanks in advance...
JF Mous