CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    How to go to the head of a file?

    Hello,

    i have open a file :Open sPath For Input As #1
    i read some characteres and after i would want to go back to the head of the file without close and open again the file.

    Thank you for your response
    Best Regards
    Philippe Gendreau



  2. #2
    Join Date
    Jan 2000
    Posts
    20

    Re: How to go to the head of a file?

    if you've read them as characters (I'm assuming you used myChar = Input(1,#1) ) then you can do a Seek #1, 1 to return it to the first character in the file.

    xxMariusxx


  3. #3
    Join Date
    Dec 1999
    Posts
    13

    Re: How to go to the head of a file?

    Hello,

    Thank you very much for your good response.

    Best regards,
    Philippe Gendreau


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