in vb4 16 bit win 3.1
user types in data (8 digits long) into text1
eg text1 = cake
Using this user data (cake) what is the code for greating this file (eg cake.dat) , open it for output , write to it and close it.
I have tried astring = val(form1.text1.text)
open "c:\xxe\astring.dat" for output as #1
write #1: close #1
when I go to view that file it has been saved as Astring.dat
I need it saved as cake.dat
Help ........I am SHUT OFF until I can do it!!!!!!!!