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

how to move between lines when writing to a text file

$
0
0
i am using the following code to write to a text file

Code:

dim A1 as string

A1= "......."

On Error GoTo l1
Open App.Path & "\Textfile.txt" For Append As #1
l1:
On Error GoTo l2
Print #1, A1
Close #1
l2:

which go down to a new line each time its used, however at some points i need to go back and complete to the first line an additional string and then go back down.
how can i move between lines, and to the specific point?

Viewing all articles
Browse latest Browse all 21843

Trending Articles



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