U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » Open file as stream for fgetpos(), fseek(), etc.
Open file as stream for fgetpos(), fseek(), etc. [message #29697] Tue, 09 November 2010 02:43 Go to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
I am using the file chooser in upp.
FileIn in((String)fn);

What is the best way in upp to open the file as a stream:
FILE *fp;
or
ifstream infile (fp);


so these C++ functions can be used:
fgetpos(), fseek(), fseeko(), fsetpos(), ftell() and ftello()

and still use:
while(!in.IsEof()){
Ln = in.GetLine();
or something similar to get the lines.

[Updated on: Tue, 09 November 2010 03:09]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Few questions
Next Topic: Debugging
Goto Forum:
  


Current Time: Wed May 06 12:27:01 GMT+2 2026

Total time taken to generate the page: 0.00557 seconds