Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with Text Files
Message
From
07/09/2001 12:58:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/09/2001 12:09:01
Raven Ferrer
Software Solutions
Manila, Philippines
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00553872
Message ID:
00553926
Views:
15
>goodday,
>
>can somebody help me on how to append a text file to another text file in VFP. TIA
lparameters tcText1, tcText2
#define MAXCHARS 65535
h1 = fopen(tcText1,12) && tcText2 appended to tcText1
h2 = fopen(tcText2)
=fseek(h1,0,2)
*=fputs(h1,'') && insert CRLF at end
do while !feof(h2)
 =fwrite(h1,fread(h2,MAXCHARS),MAXCHARS)
enddo
=fclose(h1) and fclose(h2)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform