Henry remember this.
Dim output As String
'Old Delete Block
If File.Exists(fileName) = True Then
Debug.WriteLine("file deleted ")
'Using fs As FileStream = File.Create(fileName)
' For Each t In coastalTowns
' output = New UTF8Encoding(True).GetBytes(String.Format(myFormat, t.name, t.county, t.population, t.area))
' fs.Write(output, 0, output.Length)
FileOpen(2, fileName, OpenMode.Random, , , 43)
For Each T In coastalTowns
If Not T.name = "" Then
output = (String.Format(myFormat, T.name, T.county, T.population, T.area))
The obsolete code we had to use. haha
My god, yes I do. FilePut(), FileOpen() and FileClose() are bring back horrid memories from my A Level coursework hahahaha. One of the reasons I'm very glad my VB days are behind me.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.