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,948c8b1c8730d81 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-12 02:05:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tdcnorge.no!news.equant.no!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: ATOI Date: Sat, 12 Jul 2003 09:05:39 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1058000739 4377 129.241.83.78 (12 Jul 2003 09:05:39 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sat, 12 Jul 2003 09:05:39 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:40225 Date: 2003-07-12T09:05:39+00:00 List-Id: Riccardo Fulcoli wrote: > HI! > I'm having problems reguarding the input/output from files in text mode. > Exactly I would like to read a field as a string of 50 characters(and for > that i'm using the redirection of the input) and after that to convert it in > a number (an integer). > i.e. I'm looking for a function like the C "atoi". Number : Integer := 0; Read_String : String (1..50); -- Reading in the string etc... Number := Integer'Value (Read_String); If I understand your question correctly -- Ada95 is good for you. http://www.crystalcode.com/codemage/MainMenu/Coding/Ada/IntroducingAda.php