hi
iam reading text file thru vb 6.0 . now i want 2 count the no of lines in that text file. can anyone give me idea 2 retrieve the no of lines
for reading , i had used the codes,
Open sfil For Input As #nSourceFile
Do While Not EOF(1)
Line Input #1, schunk
loop
regards
vivek
Hi. You only need to add a counter in the loop
Open sfil For Input As #nSourceFile
Do While Not EOF(1)
Line Input #1, schunk
lngCounter = lngCounter + 1
loop