[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
read system call.
I wrote a simple program to read some data from an ordinary text file usng
the read system call. but it does not seem to be working. cud someone pls
help me out
if (fd = (open("/root/data",O_RDONLY,0) < 0))
while(count = (read(fd,buff,sizeof(buff))) > 0)
printf("\n %s ",buff);