Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compare txt files Pin
David Crow13-Sep-05 10:25
David Crow13-Sep-05 10:25 
GeneralRe: Compare txt files Pin
gamitech13-Sep-05 10:56
gamitech13-Sep-05 10:56 
GeneralRe: Compare txt files Pin
David Crow13-Sep-05 11:09
David Crow13-Sep-05 11:09 
GeneralRe: Compare txt files Pin
densitet13-Sep-05 22:11
densitet13-Sep-05 22:11 
GeneralRe: Compare txt files Pin
densitet13-Sep-05 22:12
densitet13-Sep-05 22:12 
GeneralRe: Compare txt files Pin
gamitech13-Sep-05 9:53
gamitech13-Sep-05 9:53 
GeneralRe: Compare txt files Pin
bugDanny13-Sep-05 11:25
bugDanny13-Sep-05 11:25 
GeneralRe: Compare txt files Pin
densitet14-Sep-05 0:11
densitet14-Sep-05 0:11 
Ok, now i have that, i have changed things that u told me, but now i think it is in a infinitive loop. Im new in c++ but a simple comparation to see if for example 2 elements from one file are in other file with 10 is difficult right now because i can't do a breakpoints to see where is the error. I dont know if u have any ideas for this code that i show here but the idea is that i described. thank u for all the help.


char data[128];
char data2[128];
bool salida2 = false;
ifstream fileusb;
ifstream database;
fileusb.open("GUIDs_found.txt", ios::in);
database.open("USBDevices.txt", ios::in);
fileusb.getline(data,128);
while (!fileusb.eof())
{
database.getline(data2,128);
while ((!database.eof())||(salida2!=true))
{
if (strcmp(data,data2) == 0){
salida2=true;
//database.clear();
database.seekg(0,ios::beg);
database.close();
database.open("USBDevices.txt", ios::in);
database.getline(data2,128);

fileusb.getline(data,128);

}
else{
database.getline(data,128);
}

}

salida2 = false;


}

fileusb.close();
database.close();
GeneralRe: Compare txt files Pin
David Crow14-Sep-05 2:36
David Crow14-Sep-05 2:36 
GeneralRe: Compare txt files Pin
densitet14-Sep-05 4:38
densitet14-Sep-05 4:38 
GeneralRe: Compare txt files Pin
David Crow14-Sep-05 5:54
David Crow14-Sep-05 5:54 
GeneralRe: Compare txt files Pin
bugDanny14-Sep-05 11:04
bugDanny14-Sep-05 11:04 
GeneralRe: Compare txt files Pin
David Crow14-Sep-05 11:06
David Crow14-Sep-05 11:06 
GeneralRe: Compare txt files Pin
bugDanny15-Sep-05 6:44
bugDanny15-Sep-05 6:44 
GeneralRe: Compare txt files Pin
David Crow15-Sep-05 7:08
David Crow15-Sep-05 7:08 
QuestionMFC Application Pin
nss_7513-Sep-05 1:29
sussnss_7513-Sep-05 1:29 
AnswerRe: MFC Application Pin
logicaldna13-Sep-05 1:32
logicaldna13-Sep-05 1:32 
GeneralRe: MFC Application Pin
Anonymous13-Sep-05 17:36
Anonymous13-Sep-05 17:36 
AnswerRe: MFC Application Pin
David Crow13-Sep-05 2:19
David Crow13-Sep-05 2:19 
AnswerRe: MFC Application Pin
John R. Shaw13-Sep-05 5:47
John R. Shaw13-Sep-05 5:47 
Questionadd two functions for a button Pin
meiyueh13-Sep-05 1:08
meiyueh13-Sep-05 1:08 
AnswerRe: add two functions for a button Pin
*Dreamz13-Sep-05 1:26
*Dreamz13-Sep-05 1:26 
Generalbutton settings Pin
meiyueh13-Sep-05 1:48
meiyueh13-Sep-05 1:48 
GeneralRe: button settings Pin
*Dreamz13-Sep-05 2:00
*Dreamz13-Sep-05 2:00 
AnswerRe: add two functions for a button Pin
logicaldna13-Sep-05 1:30
logicaldna13-Sep-05 1:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.