Home » Community » Newbie corner » Open file as stream for fgetpos(), fseek(), etc.
Re: Open file as stream for fgetpos(), fseek(), etc. [message #29704 is a reply to message #29697] |
Tue, 09 November 2010 09:52   |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
nlneilson: U++ being crossplatform platform means whenever you are looking at some basic C++ clib/POSIX function at thinking about using it, you should have warning bell in head saying "how does U++ wrap this?" and search for it first, or ask at forum. When you adopt this tactic, you will start straight with upp::Stream and save yourself some trouble later.
Although this approach locks you to U++, but then again, the source is here, so it's not that much of "lock". And benefits ... usually cleaner API, hiding platform specific details (like int vs int64 in clib file functions), and usually a nice interface to read things directly into NTL/[W]String and other Core types.
About searching it in help... I find it somewhat difficult too, I often try this web version first, but sometimes when I'm almost sure where to look, I include that package into my project and hit F1. With things like NTL and files it's quite easy to guess where to look, that's pure Core.
Funny thing, now I did notice in latest TheIDE build I can't click on any internal hyperlink in help (external leading to http:// works), only the tree on left works.
|
|
|
 |
|
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:29:59 CEST 2025
Total time taken to generate the page: 0.02567 seconds
|