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()

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.