Find the answer to your Linux question:
Results 1 to 2 of 2
I came across read & write commands as len = read(ipf,buf,4096); write(opf,buf,len); What is significance of each parameter ? plz help me..............
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    13

    read(,,) & write(,,)

    I came across read & write commands as
    len = read(ipf,buf,4096);
    write(opf,buf,len);

    What is significance of each parameter ?
    plz help me...........

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    For the read() function, do this at the command line:
    Code:
    man 2 read
    Lather, rinse, and repeat for write().

    In general, for any function (we'll call her barney() for this example), do this at the command line:
    Code:
    man -a barney
    If the man page for that function is not installed on your system, google for this:
    Code:
    man barney Linux
    Hope this helps.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...