From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b3b93af4cfcf5a32 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-25 09:23:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!proxad.net!nerim.net!diablo.netcom.net.uk!netcom.net.uk!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.ns.com (John McCabe) Newsgroups: comp.lang.ada Subject: Re: reading from a file Date: Mon, 25 Feb 2002 17:23:33 GMT Organization: Emrad Ltd Message-ID: <3c7a72b1.30319166@news.demon.co.uk> References: NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1014657772 nnrp-10:3322 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:20381 Date: 2002-02-25T17:23:33+00:00 List-Id: On Mon, 25 Feb 2002 17:08:01 -0000, "Deepie" wrote: >Hi, > >I am currently writing a program from which i need to read in from a file. > >When trying to read from the file using a command such as Skip_Line(F), F >being the file handle, i generate an 'invalid parameter in use' error. > >things like Get_Line(F, name, length) dont work either. am i missing >something here? This sounds like something very obvious is wrong - give us an example and (if you're not trying to get us to do your homework), you'll probably get a reasonable answer. A few questions: 1) What is 'F' defined as? 2) What type of file-io are you using? 3) Have you opened the file for reading? etc.