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

[Resolved]Adding a line feed or not when writing to a file

$
0
0
I am using the following code to write to a file.

Open gstrTxPCDir & gstrTxPCFileName For Append As #TextDLFNum
Some Code
Print #TextDLFNum, gstrRxLineInput
Some Code
Close #TextDLFNum

All works fine except:
The above code always puts a linefeed at the end of each line. In some cases I need to write the last line without a line feed.
How can I do that?:confused:

Viewing all articles
Browse latest Browse all 21839

Trending Articles



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