Dear moderator,
I want to change a text file with lines into a contiguous text.
The text file consists of lines like "15,28,55" but which also end with what I think is something like vbcrl.f
I can't get rid of the latter but this is necessary because I want to convert the entire merge (15,28,55,34,78...) into another text file for making an array by means of split
The code :
Dim reader As StreamReader = File.OpenText("C:\users\AndreAugust\source\repos\balto-zimmermann\allegridtextbestanden\gridtext3.txt")
Dim lijn As String
Dim allelijnen As String
Do While Not reader.EndOfStream
lijn = reader.ReadLine()
lijn.Remove(vbCrLf) '????
allelijnen = allelijnen & lijn
Loop
thanks for any resonse
I want to change a text file with lines into a contiguous text.
The text file consists of lines like "15,28,55" but which also end with what I think is something like vbcrl.f
I can't get rid of the latter but this is necessary because I want to convert the entire merge (15,28,55,34,78...) into another text file for making an array by means of split
The code :
Dim reader As StreamReader = File.OpenText("C:\users\AndreAugust\source\repos\balto-zimmermann\allegridtextbestanden\gridtext3.txt")
Dim lijn As String
Dim allelijnen As String
Do While Not reader.EndOfStream
lijn = reader.ReadLine()
lijn.Remove(vbCrLf) '????
allelijnen = allelijnen & lijn
Loop
thanks for any resonse