>I'm trying to take three files, header, detail and trailer file and combine them into one. When using the COPY TO using fread and fwite the file instead of having one record per line, it comes out without carriage returns and the file looks like it runs all together. I am using the COPY TO (FILE) TYPE SDF. Any help on this would greatly be appreciated.
I had to do something similar with three different tables to create a single SDF file. What I ended up doing was to create a .DBF that was a single MEMO field and append each of the three tables (converted to individual SDF's) into the memo. Then I copied the MEMO to an SDF file. Perhaps something like this would work for you?
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place