VB6, microsoft word
Posted on 2013-05-31
i have data in .rtf file format. i want to read .rft file in vb6 sequentially. i have open file as below.
Dim mvFileNum As Integer, mvFileName As String, inpReaddata As String
mvFileName = "D:\TestData\Inp Data.rtf"
mvFileNum = FreeFile()
Open mvFileName For Input As #mvFileNum
Line Input #1, inpReadData
above code is reading one record and exit.
1. how can i read file sequentially?
2. how can i get no of lines in file so that i can set loop?