JPHHLASH

read/write in linux

Home
header files
Linux Commands
access windows partition from linux
startup
compiling from source code
how to run C/C++ programs in linux
some useful shell scripts
environment variables
fork and exec
Using apache
php in linux
read/write in linux

The write system call produces output. The file descriptor 1 corresponds to standard output.The third argument is the number of characters to write,and the return value is the number of characters that were actually written.

eg
write(1,"whatever\n", 11)= 11

The read system call reads input in this fashion.

/* Read the file into the buffer. */
read (fd, buffer, *length);

Enter supporting content here

Feedback, query, ideas? Email crenshaw_jo@yahoo.com.