Advertisement

fscanf with strings

Started by May 15, 2001 05:02 PM
-1 comments, last by Zoe 23 years, 9 months ago
Hi, I''m using the following code to populate my array with ints. #include int list[5]; FILE *fp = fopen("myfile.txt","rt")if(fp!=NULL) { for(int a=0; a<5; a++) { fscanf(fp,"%i",&list Thanks in advance! ' Target=_Blank>Link

This topic is closed to new replies.

Advertisement