Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27086

VS 2010 [RESOLVED] Directories from text file - lines being skipped!

$
0
0
Essentially I have a text file which has text on each line and a block of code that creates directories with the currently read line. Problem is, some lines are being skipped (Every 3rd line...) Any ideas?

Dim obj As IO.StreamReader
obj = New IO.StreamReader(filePath & "sets.txt")
Do Until obj.ReadLine Is Nothing
System.IO.Directory.CreateDirectory(filePath & obj.ReadLine)
Loop

obj.Close()

Viewing all articles
Browse latest Browse all 27086

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>