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

C / C++ / MFC

 
AnswerRe: Compare txt files Pin
David Crow13-Sep-05 4:20
David Crow13-Sep-05 4:20 
GeneralRe: Compare txt files Pin
densitet13-Sep-05 4:49
densitet13-Sep-05 4:49 
GeneralRe: Compare txt files Pin
David Crow13-Sep-05 5:56
David Crow13-Sep-05 5:56 
GeneralRe: Compare txt files Pin
gamitech13-Sep-05 9:35
gamitech13-Sep-05 9:35 
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 
Extactly, my fileusb can has 2, 3, 4 usb devices plugged. And my database can has maybe 10 usb devices registered. So im getting crazy because i dont know how to use correctly istream::seekg(); and where exctaly, i suposse when i find one usb registered then reset with this function fileusb and i start in the beginning again and i compare with the second od the dataserver??, so i only have to write this function and the rest is ok??.. Thank u very much for the help

void compareFiles(){

char data[40];
std::ifstream fileusb ("GUIDs_found.txt");
char data2[40];
std::ifstream database ("C:\\USBDevices.txt");
bool salida2 =false;

while (!fileusb.eof() )
{
fileusb.getline(data,40);
database.getline(data2,40);
while (!database.eof()||(salida2!=true))
{
if (strcmp(data,data2) == 0){

salida2=true;
//data[40]=0;
AfxMessageBox("USB registered");
break;
}
else{
fileusb.getline(data,128);
}

}
salida2=false;
}

fileusb.close();
database.close();
}

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 
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 

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.