Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append from with return character
Message
From
16/10/2002 21:22:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00712102
Message ID:
00712131
Views:
9
>is this command only works for certain version of the vfp?? I am using 5.0 it does not work: dummy = filetostr(test). It tells me that filetostr program does not exist..
>sherry

FileToStr() is a built-in function in VFP 6 or later. Fortunately, it can easily be emulated in earlier versions. Try download #9592.

The purpose of FileToStr() is to convert from a file to a memory variable with a single command.

The purpose of StrToFile() is the opposite: write a variable (actually, any expression) directly to a disk file, with a single command.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform