Question I recently purchased the 1989 IBM PS2, and I'm trying to transfer large files from my new UNIX-based computer to this IBM via a floppy disk. I have a bash script that breaks my files into ~ 2MB chunks, now I'm trying to write a pascal program to recover these files after transferring them.
I can not find the correct methods to read / write to a file on this computer. I tried various training sites on pascal, but they are all for newer versions (the site I followed, File Processing in Pascal ). I can create an empty file (as described below), but I cannot write to it. Does anyone know the correct pascal read and write methods for this type of computer?
I know this is an unclear question, so well in advance for any help you can give me!
Details :
The current test code that correctly creates the file is as follows:
program testingFiles; uses Crt, Win; const FILE_NAME = 'testFile.txt'; var outFile : File; begin writeln('creating file ...'); Assign(outFile, FILE_NAME); rewrite(outFile); end.
This is some test code that does not work, the append() and close() method was not found:
program testingFiles; uses Crt, Win; const FILE_NAME = 'testFile.txt'; var outFile : File; begin writeln('creating file ...'); Assign(outFile, FILE_NAME); append(outFile); writeln('this should be in the file'); close(outFile); end.
This is an alternative that also didn't work, the writeln() method only ever prints to the terminal. But otherwise, it will compile.
program testingFiles; uses Crt, Win; const FILE_NAME = 'testFile.txt'; var outFile : File; begin writeln('creating file ...'); Assign(outFile, FILE_NAME); rewrite(outFile); writeln('this should be in the file'); close(outFile); end.
System . As already mentioned, this is the 1989 IBM PS2 .
- He installed Windows 3.0 and can also run DOS and MS-DOS terminals.
- It has Microsoft SMARTDrive Disk Cache version 3.06
- It has Turbo Pascal 5.5 installed, and I use
turbo as the pascal command line editor. (last update was updated in 1989). - He has Turbo debugger 1.5 installed.
Again, I know this is an unclear question, so well in advance for any help you can give me!