hai friends,
i really want to know how to read a file seperately. that means i want to read and print first 24 lines then if i click the next button i will read and print tihe next 24 lines. try to post ur replies.
Something along these lines, you need to declare your FSO , etc still though.
-
-
Open FilePath For Input As MyFile
-
Do While Not EOF(MyFile)
-
For x=0 to 23
-
Line Input #MyFile, sNextLine
-
sNextLine = sNextLine & vbCrLf
-
sText = sText & sNextLine
-
Next x
-
'some code for whatever
-
Loop
-
-
-
You might run into some problems though hitting the end of the file in the middle of a for next loop.
You might want to research all the methods in the FSO to handle these problems and trap them as they occur.