Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

(TUT) VB6 : Save & Open Text : Advanced Way

Loading...

Sign in or sign up now!
7,749
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 28, 2008

Hope you enjoyed my video and learn something!

OPEN:

With CommonDialog1 .DialogTitle = "Open" .Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" .ShowOpen
End With
RTB1.LoadFile CommonDialog1.FileName

SAVE:

With CommonDialog1 .DialogTitle = "Save" .Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" .ShowSave
End With
RTB1.SaveFile CommonDialog1.FileName

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (FuZionDragonZ)

  • First of all, Make sure you are using RichTextBox and rename it to RTB1

    BTW, type right after Open_Click() Type On Error Resume Next. It works most of the time

see all

All Comments (23)

Sign In or Sign Up now to post a comment!
  • thanx man you rock

  • could you be so kind to show us how to load a txt file into a 4 dimensional array?

    with each line being a identified as to what cell to be loaded into?

  • thanx for this! it help me a lot!

  • how to make software which make an other software in vb6

  • can you target specific lines of the text file?

  • @lilbolson make sure you renamed the richtextbox rbt1

  • @eadddsds @eadddsds what do you mean?edit the text file that you opened? just edit however you want to in the rbt and then overwrite the text file that you opened

    is that what you mean?

  • Hey I need help! I already saved something, but I closed the program and open it again...I open my file, but how can you edit it again?

  • RTB1 is not defined . .

  • Good tutorial Open a TextFiles is very good but .....if I need open a picture...what can I do?

    You can answer my questions, please !!

    I'm very bad in visual basic but I like to see tutorials about programing

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more