Message-ID: <37EFAE3D.67EC7BD2@maths.unine.ch> Date: Mon, 27 Sep 1999 18:49:49 +0100 From: Gautier X-Mailer: Mozilla 4.07C-SGI [en] (X11; I; IRIX64 6.5 IP30) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: GPC File I/O (was PASCAL to C) References: <37EF434B DOT C966181C AT ma DOT tum DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: hilbert.unine.ch Lines: 22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Waldemar Schultz wrote: > 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. (...) > 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. A solution is to use Ada: you'll have the comfort of Pascal and a portable way to catch & handle IO results via standard exceptions. There is a free GNAT compiler for DOS (DJGPP family) and a Turbo Pascal to Ada95 translator (I have an improved version for TP6+ language extensions)... -- Gautier -------- http://members.xoom.com/gdemont/