
Adding .TXT files to a VB program without the .TXT file
Quote:
>Can I put a Text file into a VB program, and then compile it, and
>execute it on another computer without having to copy that Text file
>with it.
I do not really understand what you mean, so I will give you
several choices ;-)
I. you need a text in your app so do something like:
MyText$ = "This is a Text"
MyText$ = MyText$ + vbCrLf + " Blah Blah blah..."
...
II. or you use a .res file - read the documentation about the
ressource compiler (rc.exe)
III. your need a file called MyText.txt with your app and want
to change it with your program - include it with the setup
wizard
You need to know that a .txt file is a FILE so if you need a file
in the .txt format there is no other way than copy it.
If you need a text (some ASCII/string) where is the problem.
Quote:
Thomas
--