G
Guest
Hello MVPs:
I am not sure when to use binaryreader in .net is best?
In fact ,I am coding a program which converts data in text files
into DB. but i have to use fixed length to read data in file(old format).
Here fixed length means the count of bytes read not the count of chars read.
because there are 2-byte chars in the data file. What about to use
binaryreader to read a text file to solve this problem.
If i use streamreader,how to accomplish it?
thanks in advance.
I am not sure when to use binaryreader in .net is best?
In fact ,I am coding a program which converts data in text files
into DB. but i have to use fixed length to read data in file(old format).
Here fixed length means the count of bytes read not the count of chars read.
because there are 2-byte chars in the data file. What about to use
binaryreader to read a text file to solve this problem.
If i use streamreader,how to accomplish it?
thanks in advance.