Adding .TXT files to a VB program without the .TXT file 
Author Message
 Adding .TXT files to a VB program without the .TXT file

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.

Guy Doucet



Tue, 09 Nov 1999 03:00:00 GMT  
 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:

>Guy Doucet

Thomas
--



Fri, 12 Nov 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Combining two files (Copy file1.txt + file2.txt)

2. Combining two files (Copy file1.txt + file2.txt)

3. VB is adding quotation marks to .txt file

4. Adding Readme.txt files to VB

5. Detecting the Encoding of a .txt file without openning it

6. Help writing to txt files without the quote marks

7. Exporting Strings to a TXT File without Quotes

8. How to find and clip txt from a file, in background without user intervention

9. Add date to file name (filenameddMMyy.txt)

10. convert *.msg file to *.txt file?

11. From ASP-file to TXT-file

12. Renaming File Extensions per .TXT File?

 

 
Powered by phpBB® Forum Software