Results 1 to 4 of 4

Thread: saving text

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Posts
    37
    how can I save the text in a richTextBox to an existing text file?

  2. #2
    Guest
    To save or load as an RTF:

    Code:
    'save
    RichTextBox1.SaveFile "C:\MyFile.rtf", rtfRTF
    
    'load
    RichTextBox1.LoadFile "C:\MyFile.rtf", rtfRTF
    To save or load to a text file:

    Code:
    'save
    RichTextBox1.SaveFile "C:\MyFile.txt", rtfText
    
    'load
    RichTextBox1.LoadFile "C:\MyFile.txt", rtfText

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2000
    Posts
    37

    ok cool, But...

    ok cool. Thanks. But whats the difference between a rtfRTF and a rtfText?

  4. #4
    Guest
    rtfRTF saves in RichText format, whereas rtfText saves in ASCII Text format.

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