From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: GPC File I/O (was PASCAL to C) Date: Mon, 27 Sep 1999 12:13:31 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Distribution: world Message-ID: <37EF434B.C966181C@ma.tum.de> NNTP-Posting-Host: pcritter1.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 4.6 [de] (Win95; I) X-Accept-Language: de,en-US Lines: 39 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com After all I am using GPC 2.0(2.7.2.1) GNU Pascal to compile my old Turbo-Pascal(5.0) Files rather than translating them to C. After some hours of reading the info I found out that "Assign()" is not implemented; but there is a workaround using "Bind" etc. (don't know why, either). Then I found out, that the Borland directives {$I-} and {$I+} are not supported and produce garbage error messages. After removing those directives from the Pascal source it compiles fine. The only thing I can't heck for now is how to use some equivalent for Borlands built-in variable "Ioresult" for testing the success of I/O operations. Could someone please give me a hint how to catch bad I/O operations like "File not found" or "Can't open" and that other related stuff in GPC. Any help is highly appreciated. Thank you all out there. -- Gruss Waldemar Schultz. ________________________________________ Waldemar Schultz Technische Universität München Zentrum Mathematik M1, SCA D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228 e-mail: schultz AT ma DOT tum DOT de ________________________________________