Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i am using appendtext because i wont to ADD to the file not wright over it but, when i append the text it adds it ok but i would like to have it append the text on the next line. How do i tell it to append the text on the next line instead of just adding it?

 

And also how do i count the number of lines in a text document? not the number of letters and numbers but the number of lines?

  • Leaders
Posted

Try writing a blank string first before you write the rest of your text.

SW.WriteLine("")

:)

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Posted

for some strange reason it doesn't do anything, maybe its my method of veiwing the file?!!? i dont think i would have anything to do with that but u never now when i have the code

SW.Write((TextBox1.Text))
       SW.Write("")

and i click button 2 to veiw the text it shows this

asdsaf
i entered asd the i entered saf so there should be a space between them but... its lacking
  • Leaders
Posted

I said "before you write the rest of your text"... the SW.WriteLine("") will move to the next line in the file.

:)

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...