boy141
04-06-2004, 04:28 PM
hey ya'll,
I need help on figuring out how to let me open dialog box sort my text file that has a bunch of numbers in them. I HAVE to use stream reader/writer. When I read the file, it can't comprehend the spaces like so:
10
4
2
56
-1
it dies cause it is trying to read the string. Please help me on this one.
szSrcFile = Reader.ReadToEnd()
While Not IsNothing(szSrcFile)
szContents.Add(intCatcher.Parse(szSrcFile))
szSrcFile = Reader.ReadToEnd()
End While
''''''''''''''''''''''''''''
For nIndex = 0 To szContents.Count - 1
'
lbUnsorted.Items.Add(szContents(nIndex).ToString())
''
Next nIndex
I need help on figuring out how to let me open dialog box sort my text file that has a bunch of numbers in them. I HAVE to use stream reader/writer. When I read the file, it can't comprehend the spaces like so:
10
4
2
56
-1
it dies cause it is trying to read the string. Please help me on this one.
szSrcFile = Reader.ReadToEnd()
While Not IsNothing(szSrcFile)
szContents.Add(intCatcher.Parse(szSrcFile))
szSrcFile = Reader.ReadToEnd()
End While
''''''''''''''''''''''''''''
For nIndex = 0 To szContents.Count - 1
'
lbUnsorted.Items.Add(szContents(nIndex).ToString())
''
Next nIndex