Concept Framework 2.2 documentation Contents | Index

standard.C.io

Static library name Version Deprecated
standard.C.io version 1.0 no

Import library : standard.C.io
(you must include this at the top of your source: "import standard.C.io" (no quotes)


Description:
A library encapsulating file I/O operations based on standard C functions. Contains also Concept functions for I/O. See ReadFile or WriteFile.


Contained static functions:
DirectoryExists Checks if a directory exists
FileExists Checks if a file exists
ReadFile Reads the entire content of a file into a string
WriteFile Writes the entire content (at once) of a file
_chdir The _chdir function changes the current working directory to the directory specified by dirname
_errno Gets the error for the last I/O operation
_fileno Gets the file descriptor associated with a stream
_getenv Get a value from the current environment
_mkdir Create a new directory
_putenv Create, modify, or remove environment variables
_rmdir The _rmdir function deletes the directory specified by directory_path
_stat Get status information on a file
_unlink The _unlink function deletes the file specified by filename
closedir The closedir function closes the named directory stream
dirname Gets the name of a directory returned by a call to readdir
exec Loads and executes a new process (independent of the current one)
fclose Closes a file opened with fopen
feof The feof function tests for end-of-file on a stream
fflush The fflush function flushes a stream associated with file descriptor fd
fgetc fgetc reads a single character from the current position of a file associated with fd
fgets The fgets function reads a string from the input fd argument and stores it in buffer
fgetstring fgetstring reads one item from the input file, fd, formed by the string separator, with maximum size max_size
filegid Gets the group id of the owner of a file
filelast_acc Gets the last access time of a file
filelast_ch Gets the last changed date/time of a file
filelast_mod Gets the last modification date/time of a file
filesize Returns the file length, in bytes, of the target file
filetype Gets the type of a file
fileuid Gets the used id of the owner of a file
fopen The fopen function opens the file specified by filename
fputc fputc writes the single character ch to a file at the position indicated by the associated file position indicator (if defined) and advances the indicator as appropriate; the file is associated with fd
fputs fputs copies buffer to the output stream fd at the current position, without the terminating null character
fread The fread function reads up to count items of size bytes from the input file and stores them in buffer
freopen The freopen function closes the file currently associated with fd and reassigns fd to the file specified by path
fseek The fseek function moves the file pointer (if any) associated with fd to a new location that is offset bytes from origin
fsize Gets the file length, in bytes, of the target file
ftell The ftell function gets the current position of the file pointer (if any) associated with the file descriptor
fwrite The fwrite function writes up to count items, of size length each, from buffer to the output file
opendir The opendir() function opens the directory named by filename, associates a directory stream with it and returns a pointer to be used to identify the directory stream in subsequent operations
readdir The readdir function returns an identifier to the next directory entry
remove The remove function deletes the file or directory specified by path
rewinddir The rewinddir() function resets the position of the named directory stream to the beginning of the directory
seekdir The seekdir() function sets the position of the next readdir operation on the directory stream
telldir The telldir function returns the current location associated with the named directory stream




Documented by Simona Plesuvu, generation time: Sun Jan 27 18:15:15 2013 GMT(c)2013 Devronium Applications