Hi,
I am writing a program whereby information is written to a flat file one line at a time. Then I stay in my VB program and read that flip file back into list boxes if the user wants to see what it wrote out there into the flatfile. Well, if I stay in the program (don't exit) the line that I just wrote out there (which is in the flat file) won;t show up in my list boxes. If I exit the program and get back in and press the button, it shows up. All I am doing is
open "filename" for input as #1
while not eof(1)
input #1, x
input #1, y
etc
wend
close
Likewise I am using a similar open and close to write it out. I've never had this before. Why won't if read back the last record I wrote out unless I exit the program and get back in?
Perplexing???
I am writing a program whereby information is written to a flat file one line at a time. Then I stay in my VB program and read that flip file back into list boxes if the user wants to see what it wrote out there into the flatfile. Well, if I stay in the program (don't exit) the line that I just wrote out there (which is in the flat file) won;t show up in my list boxes. If I exit the program and get back in and press the button, it shows up. All I am doing is
open "filename" for input as #1
while not eof(1)
input #1, x
input #1, y
etc
wend
close
Likewise I am using a similar open and close to write it out. I've never had this before. Why won't if read back the last record I wrote out unless I exit the program and get back in?
Perplexing???