Jeff Johnson wrote:
> * Begin
> IF !FILE('sytze.csv')
> lnhandle = FCREATE('sytze.csv')
> ELSE
> lnhandle = FOPEN('sytze.csv', 2)
> ENDIF
>
> IF lnhandle > -1
> lcstring = '14000.00,"Smart Car","A totally cool little car that gets
> 45 miles per gallon but does not have room for a spare tire' + ;
> ' so if you blow out a side wall and go to Discount Tire, you have
> to wait for a couple of days for them to get the tire in. Other' + ;
> ' than that it is really neat. Oh, and if you run over a pipe it
> can do up to $1,200 in damage."'
>
> =FPUTS(lnhandle, lcstring)
> =FCLOSE(lnhandle)
> ENDIF
>
> MODIFY COMMAND sytze.csv
> * end
>
> I could not have survived my 20 years without it!
>
>
Untill you find out about "COPY MEMO memofield TO file"
<code>
create cursor phoo (contents M)
append blank in phoo
...
replace contents with contents + whatever in phoo
...
*** repeat ^^^ as needed to put all the contents of your output file
inside the memo field.
...
copy memo phoo.contents to MyOutputFile.csv
</code>
And that's it! No need for low level file operation.
HTH
> Sytze de Boer wrote:
>
>> HI Jeff, thanks for your help
>> I have never in 20 years of foxpro even looked at Fopen, Fwrite etc
>>
>> Can you spare 30 secs and share how to use FPUTS ?
>>
>>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.