Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File problem (#2)
Message
From
04/07/2003 09:36:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
File problem (#2)
Miscellaneous
Thread ID:
00806939
Message ID:
00806939
Views:
54
NOw i found the solution i use FPUTS and it make my carriage return but when i write in the file it erase me character. How can i do if i dont want to lose character?

SELECT rapport
COPY TO "export.csv" TYPE DELIMITED WITH "" WITH CHARACTER "|"
IF FILE('export.csv') && Does file exist?
gnErrFile = FOPEN('export.csv',12) && If so, open read-write
ENDIF
lfield = ""
FOR gnCount = 1 TO (FCOUNT( ) - 1) && Loop for number of fields
lfield = lfield + FIELD(gnCount) + "|"
NEXT
lfield = lfield + FIELD(gnCount)
=FPUTS(gnErrFile, lfield )
=FCLOSE(gnErrFile)
Next
Reply
Map
View

Click here to load this message in the networking platform