in my form_load sub...im trying to make a procedure which reads all the user names from a file using the streamreader and then putting them all into a listbox.
all works fine...unless when the file does not exitst.
so i tried the following thing(in the form load):
if file.exist("c:\1.txt")=false then
file.create("c:\1.txt")
else
dim fs as new filestream("c:\1.txt")
** the file to listbox procedure **
end if
then when im trying to get into the file again,to read or write from the program it says that its already being used....(i guess by the "file.create" actually im sure..)
any idea how to release it from this file.create???
all works fine...unless when the file does not exitst.
so i tried the following thing(in the form load):
if file.exist("c:\1.txt")=false then
file.create("c:\1.txt")
else
dim fs as new filestream("c:\1.txt")
** the file to listbox procedure **
end if
then when im trying to get into the file again,to read or write from the program it says that its already being used....(i guess by the "file.create" actually im sure..)
any idea how to release it from this file.create???