Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

Line of text troubles

$
0
0
I have my program reading from a txt file lines of text and printing them into another file. How would i get it to not type out all lines only certain ones. this is what I have for now but it reads all of the lines i need to have only certain ones at certain times.

Code:

Open "a:\vxdata.txt" For Input As #1
Open "C:\Test\Patient.htm" For Append As #2

Do While Not EOF(1)
    Line Input #1, LineOfText
Print #2, LineOfText; "<br>"
Loop
Close #1
Close #2


Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>