 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Seabass Guest
|
Posted: Thu Jul 24, 2003 11:12 am Post subject: TReader related Question |
|
|
Hey everyone,
I hope someone here can help me with this. I am trying to read from a file
using the following code:
ReultFile *TFileStream;
TReader *Reader;
AnsiString strTemp;
ResultFile = new TFileStream(LocalDoc, fmOpenRead);
Reader = new TReader(ResultFile,ResultFile->Size);
try
{
Reader->ReadListBegin();
while (!Reader->EndOfList()) strTemp += Reader->ReadString()
+ "rn";
Reader->ReadListEnd();
}
__finally
{
delete Reader;
delete ResultFile;
}
But I got the following problem. The line "Reader->ReadListBegin();" creates
an EReadError with the following message: "Invalid Property Value" and I
don't know why. The file that I am trying to open exists and I can open it
with Notepad. Does anyone have an idea?
Any help is appreciated
thank you
Seabass
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Thu Jul 24, 2003 4:40 pm Post subject: Re: TReader related Question |
|
|
"Seabass" <sbsoftea (AT) ww-ei (DOT) nl> wrote:
| Quote: | [...] I feel really stupid now
|
Welcome to the club!!
~ JD
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|