how to delete lines at beggining and add new lines at end of file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praveeneast
    New Member
    • Jul 2007
    • 3

    how to delete lines at beggining and add new lines at end of file

    how do we delete the lines at the beggining and add new lines to the end of the when the file size reached maximum in C.
  • devikacs
    New Member
    • Jun 2007
    • 96

    #2
    Originally posted by praveeneast
    how do we delete the lines at the beggining and add new lines to the end of the when the file size reached maximum in C.
    hi
    did you find you how limit the size? could you help me regarding that?

    Comment

    • praveeneast
      New Member
      • Jul 2007
      • 3

      #3
      Originally posted by devikacs
      hi
      did you find you how limit the size? could you help me regarding that?


      no not yet. i am trying for that. i was just looking if some how we could limit then how to proceed.

      Comment

      • devikacs
        New Member
        • Jun 2007
        • 96

        #4
        Originally posted by devikacs
        hi
        did you find you how limit the size? could you help me regarding that?
        And regarding deleting lines from the top, you will have to rewrite the entire file to a new one , add the new lines to that file.
        If necessary rename the new file to the old one after deleting the old file

        Comment

        • devikacs
          New Member
          • Jun 2007
          • 96

          #5
          Originally posted by devikacs
          And regarding deleting lines from the top, you will have to rewrite the entire file to a new one , add the new lines to that file.
          If necessary rename the new file to the old one after deleting the old file
          If you are able to find, please do post the method in order to help others in a forum. I am not very good at C and i am here to learn.

          Comment

          Working...