Visual Basic Sequential File Help [Archive] - SpeedGuide.net Broadband Community

View Full Version : Visual Basic Sequential File Help


corkymccorkle
04-03-02, 09:35 PM
hi, i need help with sequential access files. I was wondering how i could go back and forth between records such as in this text file

rec1, "hi"
rec2, "howdy"
rec3, "bye"


how could i be able to navigate up and down in this file, so that if i last inputted rec3, that i could go up a line and input rec2.

Tryn
04-03-02, 11:45 PM
You Might try these site http://www.vb-world.net/ http://www.freevbcode.com/default.asp

they have some great articles.

You might try reading the text file in to an array and then manipulating the records that you need then writing the new info back over the text file when you are done. you should be able to easily go up and down in the array.



Hope this helps

tryn

corkymccorkle
04-04-02, 03:30 PM
thanks, i asked my teacher today and he said the same thing, use an array. And thanx for the sites.