Create a .txt file in VB5 not a DB 
Author Message
 Create a .txt file in VB5 not a DB

Beginner needs help!! How to create a new .txt in VB5 for data storage thats
not a database???
Thanks very much if you can help!!!



Fri, 15 Dec 2000 03:00:00 GMT  
 Create a .txt file in VB5 not a DB



Quote:
>Beginner needs help!! How to create a new .txt in VB5 for data storage thats
>not a database???

open "textfile.txt" for output as #1
print #1, "As much text as you want"
print #1. "on as many lines as you want."
close #1

--
Regards, Peter Hesketh  Monmouthshire UK
Twenty reasons why chocolate is better than sex: number 5
"If you bite the nuts too hard the chocolate won't mind."



Fri, 15 Dec 2000 03:00:00 GMT  
 Create a .txt file in VB5 not a DB

: Beginner needs help!! How to create a new .txt in VB5 for data storage thats
: not a database???
: Thanks very much if you can help!!!

How about:

Open "Myfile.txt" for output as #1

Write #1, a$ ,b$, c   'stick all yer data in a bunch of variables

Close #1

HTH,
Paul



Fri, 15 Dec 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Create a *.txt file in VB5 thats not a DB

2. Creating .csv files fom SQL6.5 DB using VB5

3. Adding .TXT files to a VB program without the .TXT file

4. Importing a Fixed Width *.txt file to a Access DB

5. import comma delimited txt files into db

6. Transfertext with files not named .txt

7. Creating Txt-File from big XLS-Sheet in VB-Script

8. To create a Web based report from a .txt file that I'm given

9. Help VB5 Print to .txt File

10. Create folders from TXT-file?

11. Create download for txt file

12. Problems with data control and text files that do not have '.txt extension

 

 
Powered by phpBB® Forum Software