Subj : Re: directly inputting numbers To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Thu Jul 17 2003 02:57 pm Yes, you could read the file into the data array but you wouldn't get what you were looking for. What you are reading is a set of characters, not numbers. For instance the character '0' is a byte of value 0x30 or decimal 48. You do not have the numbers available to the program to be read. All you have is a set of characters which represent those numbers. Were they to be directly read into the array, the array is of binary numbers and the values achieved by putting the characters themselves into it are not the binary or decimal values which the characters represent. .. Ed > Michael Fruchter wrote in message > news:3f16d1de@newsgroups.borland.com... > > Thank you for your response. Am I correct to conclude that > there is no way to directly read in the text as a number? > (i.e., by telling it to read a certain amount of places) > > Using your example, is it possible to read the file directly > into the data array (without first reading the file into the > buffer string)? .