Results 1 to 2 of 2

Thread: Saving big textfile help

  1. #1

    Thread Starter
    Hyperactive Member ibennz's Avatar
    Join Date
    Aug 2010
    Posts
    282

    Exclamation 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()

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width