CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Location
    alabama, usa
    Posts
    96

    File operation in C

    Hi
    I have to randomly move in a file and findout wether i am at the begining of a new line in the file and then return that position .I will later o do some operations on that retuned line.
    Regards ,
    matu

  2. #2
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    1,664
    Use fseek() for moving back and forth in the file.
    Use ftell() to get the offset of current position.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured