
Originally Posted by
devGOD
what if i did something like if the item in Textbox1 is bad then load newitems.txt into lstNew
Textbox1.Text = lstNew.List(0)
lstNew.RemoveItem 0
now i would need a code that would save all the items in lstNew the file newitems.txt completely overwriting the old file. cause it doesn't matter which newitem name is grabs from the list.
so the code i would need now, would be to save all the remaining entries in lstnew to newitems.txt overwriting the old file. would i have to do a "kill newitems.txt" first then have a code save all items to newitems.txt?
VB Code:
dim x as integer
dim ff as integer
ff = freefile
open app.path & "\newitems.txt" for output as #ff
for x = 0 to lstnew.listcount - 1
print #ff, lstnew.list(x)
next x
close #ff