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.
Re: Open file as stream for fgetpos(), fseek(), etc. [message #29701 is a reply to message #29700] Tue, 09 November 2010 07:24 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

They can be found in Stream documentation, because they're part of the interface common to all Streams.

The fseeko function is not needed, it's only difference from fseek is the type of position parameter. The Seek() method takes int64 argument, so it is actually equivalent to fseeko64() and that should be suitable for anything. Similarly for ftello.

Now, IIRC ftell() essentially differs from fgetpos() only in fact that one returns number of characters and the other number of bytes, right? The same holds for fseek() and fsetpos(). The U++ streams always work with bytes, not characters and the same is true for String, so only the byte versions are usually necessary. If you work with multibyte characters, you will have to load them to WString first if you want to work with characters.

Windows search is and always has been a disaster. It is usually faster to search help in theide, or even search the uppsrc directory using "Search in files..." Wink

Honza
 
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: Sun May 19 15:20:36 CEST 2024

Total time taken to generate the page: 0.01998 seconds