Creating a text file

cbvandal
04-18-2003, 08:45 AM
I have made a till program that prints a receipt to give to the customer, is there anyway that I can send this receipt to a textfile for the till operator to print and save later??? :rolleyes:

phinds
04-18-2003, 09:02 AM
the "sandbox" project at the link below my name shows you how to create text files.

Pookie
04-18-2003, 09:03 AM
open "c:\save.txt" for output as #1 ' or you can use for append as #1 if you wish to add data to it
print #1,somedata
print #1,somemoredata
' etc
close #1


Append adds data to the end of a file while output creates a new file, deleting the odd if need be

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum