G
Guest
hi,
I'm creating a component to read text files.
I'm using TextReader with Encoding Text component, because there are
several different types of text files and the encoding component translates
the bytes from this file to the correct characters.
To which one of this text file's types almost all the time '\r\n' is the
new line character. But sometimes it could not be, that's why I'm using
NewLine property to know exactly who the next line characters are in which
case.
At that point all work's fine with TextWrite, but hell knows why
TextReader doesn't have a NewLine property.
Is there any way to identify the NewLine character of a determinate
Encode system? or just stop using the NewLine and work only with '\r\n'?
Another question, TextReader copies all file from the harddisk as soon
as it is initiated, or it copies part of the file when I'm using Read();?
Thank you,
Roby Eisenbraun Martins
I'm creating a component to read text files.
I'm using TextReader with Encoding Text component, because there are
several different types of text files and the encoding component translates
the bytes from this file to the correct characters.
To which one of this text file's types almost all the time '\r\n' is the
new line character. But sometimes it could not be, that's why I'm using
NewLine property to know exactly who the next line characters are in which
case.
At that point all work's fine with TextWrite, but hell knows why
TextReader doesn't have a NewLine property.
Is there any way to identify the NewLine character of a determinate
Encode system? or just stop using the NewLine and work only with '\r\n'?
Another question, TextReader copies all file from the harddisk as soon
as it is initiated, or it copies part of the file when I'm using Read();?
Thank you,
Roby Eisenbraun Martins