PDA

View Full Version : File Program in c



zinat
April 2nd, 2014, 12:20 PM
Is there a file program that will find the numbers from a text file and store it in an int array??

EddyDreizehn
April 2nd, 2014, 01:27 PM
Hi...

I know only the function "atoi". That converts a Ascii-String to a integer value:

char *string = "1203"
int var1 = atoi(string) ;

var1 is now 1203.


:guitar: