Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Tue May 07 09:59:19 CEST 2024

Total time taken to generate the page: 0.03364 seconds