0

When I read a text file as the code below the first line returns as nothing.
I checked the text file and it contains 3 lines before the read. After the read the first line is blank the following 2 lines have values.

I don't write back to the file, yet the first line is missing!?

Dim objReader As System.IO.StreamReader
        objReader = New System.IO.StreamReader(ReturnApplicationFolder() & "risk.rsf")

        gFullPathofDB = objReader.ReadLine
        sDatabaseLocation = gFullPathofDB
        iSplitProject = objReader.ReadLine
        iSplitQuestions = objReader.ReadLine
        objReader.Close()
1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Nikon70
0

Solved: It was my code in a different sub firing when I didn't think it would.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.