BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TReader related Question

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Seabass
Guest





PostPosted: Thu Jul 24, 2003 11:12 am    Post subject: TReader related Question Reply with quote



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





PostPosted: Thu Jul 24, 2003 4:40 pm    Post subject: Re: TReader related Question Reply with quote




"Seabass" <sbsoftea (AT) ww-ei (DOT) nl> wrote:
Quote:
[...] I feel really stupid now

Welcome to the club!!

~ JD


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.