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   |
|
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..." 
Honza
|
|
|
 |
|
Open file as stream for fgetpos(), fseek(), etc.
|
 |
|
Re: Open file as stream for fgetpos(), fseek(), etc.
|
 |
|
Re: Open file as stream for fgetpos(), fseek(), etc.
|
 |
|
Re: Open file as stream for fgetpos(), fseek(), etc.
|
 |
|
Re: Open file as stream for fgetpos(), fseek(), etc.
|
 |
|
Re: Open file as stream for fgetpos(), fseek(), etc.
By: mr_ped on Tue, 09 November 2010 09:52
|
 |
|
Re: Open file as stream for fgetpos(), fseek(), etc.
|
 |
|
Re: Open file as stream for fgetpos(), fseek(), etc.
|
Goto Forum:
Current Time: Sat May 10 11:32:45 CEST 2025
Total time taken to generate the page: 0.02416 seconds
|