starcraft Posted July 27, 2003 Posted July 27, 2003 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? Quote
Leaders Iceplug Posted July 27, 2003 Leaders Posted July 27, 2003 Try writing a blank string first before you write the rest of your text. SW.WriteLine("") :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
starcraft Posted July 27, 2003 Author Posted July 27, 2003 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 codeSW.Write((TextBox1.Text)) SW.Write("") and i click button 2 to veiw the text it shows thisasdsaf i entered asd the i entered saf so there should be a space between them but... its lacking Quote
Leaders Iceplug Posted July 27, 2003 Leaders Posted July 27, 2003 I said "before you write the rest of your text"... the SW.WriteLine("") will move to the next line in the file. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
*Experts* Volte Posted July 27, 2003 *Experts* Posted July 27, 2003 You can also just append ControlChars.CrLf before your append your text. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.