>Hi All,
>
>How is it possible to copy a file with one field (character 6), to a text file to be opened in "Word" that has the exact same info, no spaces, no quotes (single or double)?
>
>creates text file with a blank character in front
>COPY TO saleco DELIMITED WITH ' ' && one space between single quotes
>
>creates a text file with single quotes in front and back
>COPY TO saleco DELIMITED WITH '' && no space()
>
>creates a text file with double quotes in front and back
>COPY TO saleco DELIMITED WITH blank
>
>Jim Harvey
There are several alternatives that give you complete control over every byte transferred, including low-level file-functions. A solution that involves relatively litte code would go something like this:
erase outputfile.txt
scan
StrToFile(alltrim(MyField) + chr(13) + chr(10), "outputfile.txt", .T.)
endscan
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)