home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug054.arc
/
APPEND.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1979-12-31
|
1KB
|
53 lines
var
InputFile : text;
InputFile2 : text;
OutputFile : text;
InputFname : string[12];
InputFname2 : string[12];
OutputFname : string[12];
Data : string[128];
begin
Clrscr;
Gotoxy(10,1);
Writeln('MICROFLEX FILE APPEND. OK to copy for NON-COMMERCIAL USE ONLY');
Gotoxy(1,5);
write ('Please enter the first input filname : ');
readln (InputFname);
write ('Please enter the second input filname : ');
readln (InputFname2);
write (' Please enter the output filename : ');
readln (OutputFname);
assign (InputFile,InputFname);
reset (InputFile);
assign (OutputFile,OutputFname);
rewrite (OutputFile);
while not eof (InputFile) do
begin
readln (InputFile,Data);
writeln (OutputFile,Data);
end;
close (InputFile);
assign (InputFile2,InputFname2);
reset (InputFile2);
while not eof (InputFile2) do
begin
readln (InputFile2,Data);
writeln (OutputFile,Data);
end;
close (Inputfile2);
close (OutputFile);
end.