File Handling with GNULinux


File Handling with GNU/Linux

File handling within GNU/Linux is accomplished through the standard C Library. We can create and manipulate ASCII text or binary files with the same API. We can append to files or seek within them.

In this chapter, we ll look at the fopen call (to open or create a file), the fwrite and fread functions (to write to or read from a file), fseek (to position ourselves at a given position in an existing file), the feof call (to test whether we re at the end of a file while reading), and some other lower-level calls (such as open , write , and read ).




GNU/Linux Application Programming
GNU/Linux Application Programming (Programming Series)
ISBN: 1584505680
EAN: 2147483647
Year: 2006
Pages: 203
Authors: M. Tim Jones

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net