|
-
Feb 27th, 2011, 04:14 AM
#1
Thread Starter
Hyperactive Member
Saving big textfile help
Hi , I would like to save a big textfile in the same format . I mean when I open it on a richtextbox and save it , the text loose is space .Exemple:
hi there
welcome home !! grattz
!!!//!/
will be (of course my file is alot bigger ) :
hi therewelcome home !! grattz
!!!//!/
Thanks and please help me .
my code to save file :
Dim save1 As New System.IO.StreamWriter(Form1.TextBox1.Text & "\scripts\NTBot\char_configs\NTConfig_Amazon_.ntl")
save1.Write(RichTextBox2.Text)
save1.Close()
-
Feb 27th, 2011, 06:00 AM
#2
Re: Saving big textfile help
As always, read the documentation. If you had read the documentation for the RichTextBox control then you'd know that it has its own Save method, which can save plain text or RTF. You'd also know that the Text property contains only text data displayed while the Rtf property contains the text data and the formatting markup. Always read the relevant documentation. There's lots and lots of information there for those who look.
http://social.msdn.microsoft.com/Sea...chtextbox&ac=8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|