i want to make a simple database but that at each
time i press a save button my saved textfile
get added the new data but the point is to first make like
3 lines i mean spaces
how to make newlines in textfile
Page 1 of 13 Replies - 225 Views - Last Post: 05 February 2012 - 05:35 PM
Topic Sponsor:
Replies To: how to make newlines in textfile
#2
Re: how to make newlines in textfile
Posted 05 February 2012 - 01:38 PM
I tend to write
to the file.. that works nicely.
Environment.NewLine
to the file.. that works nicely.
#3
Re: how to make newlines in textfile
Posted 05 February 2012 - 01:58 PM
Your question is a bit confusing. The title says newlines but in the question, it says spaces. And what does a database has to do with writing to text files?
anyways, to make spaces in between, you can add & vbTab to the end of the string.
And for newlines, its & vbCrLf (it pretty much resembles Environment.NewLine as modi123_1 has mentioned)
anyways, to make spaces in between, you can add & vbTab to the end of the string.
And for newlines, its & vbCrLf (it pretty much resembles Environment.NewLine as modi123_1 has mentioned)
#4
Re: how to make newlines in textfile
Posted 05 February 2012 - 05:35 PM
As a note: Environment.Newline should be the way you should go. The reason being that this will use the newline character of the client computer. As programmers we all know that not every computer uses the same character(s) to represent a new line. Where as the vbCrLf will always put in a carriage return \r (which moves the cursor to the beginning of the current line), and a line feed \n(which only moves the line up one does not reset the to the beginning of the next line).
This post has been edited by demausdauth: 05 February 2012 - 06:20 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|