Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Concatenating the files after REPORT FORM TO FILE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00220164
Message ID:
00220233
Vues:
23
>Hi All,
>
>I have the problem with concatenating the files which I get from REPORT FORM... TO FILE. What I need - to send the output to files, and then give the resulting file to another department to print on the mainframe printer.
> REPORT FORM ...TO FILE ADDITIVE works only with ASCII clause. If I try to concatenate files with the DOS COPY command - the resulting file somehow looses the info
>
>COPY file1.prn + file2.prn myreport.prn

DOS trick - you need to use the /B command line modifier to concatenate binary files - try:

COPY /B file.prn + file2.prn myreport.prn

Another alternative would be to use low-level file I/O to conctenate the output - open the first file for read/write, FSEEK to the end of file and then you could simply read the second file and write it to the tail of the first as you do now.

>with file sizes 51 K and 46 K gives the resulting file of 19 K in size.
>
>For now I try to produce the resulting file with low-level file functions, but it is just overhead.
>Anybody has any ideas?
>
>Nick
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform