|
-
April 30th, 1999, 11:33 PM
#1
Reading text file.
Hi,
I tried to read the following data using fscanf (probably, it's not the best
but easy way) from a text file.
1 20 12 112 1222 3939 3939
2 20 12 112 1222 3939 3939
4 22 13 112 1222 3939 3939
4 22 13 112 1222 3939 3939 342333
4 22 13 112 1222 3939 3939 343333
4 22 13 112 1222 3939 3939 343332
4 22 13 112 1222 3939 3939 343332 232333
What I did is
fscanf(text_file,"%d %d %d %d %d %d %d %d
%d",c1,c2,c3,c4,c5,c6,c7,c8,c9,c10);
It won't worked
but
fscanf(text_file,"%d %d %d %d %d %d ",c1,c2,c3,c4,c5,c6,c7);
It worked for 1 to 3 lines.
I only want to request for a good suggestion that how could I read & insert
those contains into array or any via MFC.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|