Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a text file 2
Message
From
28/06/2000 12:49:08
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00385881
Message ID:
00385882
Views:
10
>I am using VFP6. How does the syntax of strTofile() work in creating text file? Can you provide sample syntax for me to stare down?

Its so much easier to help you, if you use the "reply" link to create a new message in the same thread.

You can create a new Text file like this:

StrToFile('Hi, My Name is Ken', 'c:\MyName.txt')

You can modify it like this:

lcFile = FileToStr('c:\MyName.txt')
lcFile = upper(lcFile)
StrToFile(lcFile, 'c:\MyName.txt')
StrToFile('NETH', 'c:\MyName.txt', .t.) &&This Adds to teh file instead of Overwriting
Previous
Reply
Map
View

Click here to load this message in the networking platform