Hey..
i want to make a string from a text file..
then i want to compare this string with another to see if they are the same...
any help??
/*I'm a beginner*/
elie_kfoury
0
Newbie Poster
Recommended Answers
Jump to PostFILE *in; in=fopen("file.txt","r"); int i=0; while(fgets(buff,BUFSIZ,in)!=NULL){ a[i]=atof(buff); i++; } //do something with the stuff you've read in fclose(in);
i'm very much a beginner too but i THINK this will get you on the lines of reading in float values. its not difficult to convert it into reading …
All 5 Replies
rhubarb65
0
Newbie Poster
elie_kfoury
0
Newbie Poster
churni
34
Light Poster
elie_kfoury
0
Newbie Poster
elie_kfoury
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.