Subj : Re: directly inputting numbers To : borland.public.cpp.borlandcpp From : " Rob C" Date : Thu Jul 17 2003 10:11 am try this: sscanf( 'text', "%s", &'int' ); 'int' will then hold your number inversely: sprintf( 'int', "%s", 'text' ); "Michael Fruchter" wrote: > >Is there a way to directly input a number from a non-delimited text as opposed to reading in a certain amount of characters using "fgets" and converting to an integer using "atoi" (and then, if necessary, dividing by 10^x for x decimal places)? .