OK, best I remember:

1. you FOPen() an existing file to a nFileHandle variable

2. you FSeek(nFileHandle,0,2) to move the cursor to the end of the file

3. you FPUTS() to stick your characters into the file.

4. then FClose()  the file

Help me, people! (did I say I hated these commands?)

So you would do something like this:

report form FirstOne to Together.txt
report form SecondOne to No2.txt
report form ThirdOne to No3.txt

nFileHandle1 = FOPen("Together.txt")
FSeek(nFileHandle1,0,2)

nFilehandle2 = FOPen("No2.txt")
nEnd = FSeek(nFileHandle,0,2)
lcContents = fgets(nFileHandle2,nEnd) && store the contents of the second file into a variable
fClose(nFilehandle2)

fPuts(nFileHandle1,lcContents) && puts the variable contents into together.txt

(keep going with other files)

fClose(nFilehandle1) && at the end

(But I like Hal's suggestion better)

Ken


_______________________________________________
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
** 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.

Reply via email to