ASCII Data reading Problem

Hello !
I am writing a Program which reads a ASCII file.
In the ASCII file is are Saved some customers. The Programm should give out all customers that spent more than 1oo$.

How can i do that ?

This is a simple code for reading the whole file...


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void main()
{

char str[55];
FILE *pointer;
FILE* f;
f = fopen("C:\\Customer.txt", "r");
	if ( f== NULL )
			cout<<"Nicht gefunden"<<endl;
	else
	{
		cout<<"\READING OK"<<endl;
		while (fgets (str,55,f) != NULL)
			printf("%s\n", str);
		fclose(f);
	}


getchar();

}
Topic archived. No new replies allowed.