Документ взят из кэша поисковой машины. Адрес оригинального документа : http://jet.sao.ru/hq/sts/linux/book/c_marshall/subsection2_21_6_2.html
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 09:29:33 2012
Кодировка:

Поисковые слова: 47 п п п п п п
Low level I/O



Next: Mathematics Up: Input and Output Previous: Stream 1/0

Low level I/O

#include <stdio.h> and may also need some of #include <stdarg.h>, #include <sys/types.h>, #include <sys/stat.h>, #include <fcntl.h>.

int close (int handle ) - Close a file opened for unbuffered I/O.

int creat(char *filename, int pmode ) - Create a new file with specified permission setting.

int eof (int handle) - Check for end of file.

long lseek(int handle, long offset, int origin) - Go to a specific position in a file.

int open(char *filename, int oflag, unsigned pmode) - Open a file for low-level I/O.

int read(int handle, char *buffer, unsigned length) - Read binary data from a file into a buffer.

int Write(int handle, char *buffer, unsigned count ) - Write binary data from a buffer to a file.


Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994