Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,Im having two data files in the format of integer,then want to match this data files using pattern matching,want to display common data in that two files.I need the C or C++ code.

FILE *datafile1;
datafile1 = fopen( "c:\\pw1.txt", "r" );
float fFiledata;
int nCount = 0;
int nLatitude[ 600 ];
int nLongitude[ 600 ];
float fHeight[ 600 ];
FILE *datafile1;
fscanf(datafile1,"%f",&fFiledata );
datafile2 = fopen( "c:\\pw2.txt", "r" );
float fFiledata;
int mCount = 0;
int mLatitude[ 600 ];
int mLongitude[ 600 ];
float fHeight2[ 600 ];
fscanf(datafile2,"%f",&fFiledata );

after that how to match this files find common data and store in another file ie datafile3?
Posted
Updated 20-Apr-10 9:29am
v4

1 solution

And what is your problem exactly ? Where are you stuck ? Please ask a specific question, not asking for the full code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900