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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2593fb5bab2d7de1,start X-Google-Attributes: gid103376,public From: David Conly Subject: String Segment to Integer Question Date: 1997/09/28 Message-ID: #1/1 X-Deja-AN: 276243724 X-Sender: conly@agassiz Organization: University of North Dakota; Grand Forks Newsgroups: comp.lang.ada Date: 1997-09-28T00:00:00+00:00 List-Id: Hey All: Is there any way to take a portion of a string inputed by the user at the keyboard and make it into an integer. I need the user to enter a string such as "8h32" and be able to extract the 8 and the 32 from it separately. Currently I'm writing the string to a file and then reading the first number, skipping the second, and then reading the last 2 digits. Can I perform this operation without having to write to a file? Any input is welcome! Thanks, David Conly conly@cs.und.edu ------------------------------------------------------------------------------ David C. Conly | Flying. One part aptitude, one | part altitude, and two parts conly@cs.und.edu | attitude. http://www.cs.und.edu/~conly | FLYING MAGAZINE ------------------------------------------------------------------------------