Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004
    Posts
    3

    Question Unanswered: c scpipt read first line 150 line

    Dear all,

    I have question of C script, what code i have to create so that we can read only the first 150 lines of a given text file and,

    store it into a new file suppose that the given file has more than 500 text lines??

    Thx.

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    look into:

    man head

Posting Permissions

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