The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Erromessage file::ReadString not defined
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mahir.celi1

Germany
1 Posts

Posted - 06/05/2003 :  09:17:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,
I'm a beginner. I'm just using version 7.
I have implemented ff.ReadString(str var) in my code. After compiling i have got following errormessage file::ReadString is not defined and there is no prototype. Can anybody help me to solve this problem.

Thanks

Mahir

Mike Buess

USA
3037 Posts

Posted - 06/05/2003 :  10:54:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mahir,

ReadString is under stdiofile, not file. Here's the example from the Programming Guide...

stdioFile ff("c:\\test.dat", file::modeReadWrite);
ff.SeekToBegin();
string strLine;
ff.ReadString(strLine); //now string line is "line 1:"
ff.Close();

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000