>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)