[RESOLVED] Extra Line When Using Open... For Output
Is there any way to prevent VB from adding an extra line after writing text like this:
VB Code:
Open App.Path & "\Test.txt" For Output As #1
Print #1, "My Text Is Here, But A Line Will Be Inserted After It"
Close #1
When I use something like the above code, an extra line is inserted after that text, but I dont want it to be there. Any Suggestions?
Re: Extra Line When Using Open... For Output
Sure: A semi-colon supresses line-feeds.
VB Code:
Open App.Path & "\Test.txt" For Output As #1
Print #1, "My Text Is Here, But A Line Will Be Inserted After It"[COLOR=Red];[/COLOR]
Close #1
Re: Extra Line When Using Open... For Output
thanx dglienna, I'll check it out as soon as I get my code working again...
Re: Extra Line When Using Open... For Output
Note that if you later open the file for Append and Print some text, it will be written onto the first line.
Re: Extra Line When Using Open... For Output
Works brilliantly, thanx again dglienna!