Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Re-Read without Close and Re-Opening
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
beamer




PostPosted: Sun Nov 30, 2008 5:43 pm   Post subject: Re-Read without Close and Re-Opening

I need to find a better way to read a file once, then go back to the beginning and read it again without closing and re-opening.

I open it, then in a for loop find the number of lines, the close it. After that I make an array that size, then re-open and read it for data.

There has to be a better way to make VB think it's not at the End of File, or just move it back or reset it.

Thanks!
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: