Cannot Read file using ifstream
From: shahid (fake_at_microsoft.com)
Date: 11/22/04
- Next message: Varadharajan. M.V: "Re: Doubt on GinaHook for Fingerprint Authentication..."
- Previous message: egar: "RE: Where are NTFS perms stored?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 22 Nov 2004 11:31:13 +0500
Hi all,
ifstream certIn;
certIn.open("C:\\atemp.txtr");
certIn.seekg(0,ios::end);
int nSize = certIn.tellg();
certIn.seekg(0,ios::beg);
char cert[nSize];
certIn.read(cert,nSize);
certIn.close();
i have tried to read data using the above code in VC++6. "ANSI bad file
tag" error message is displayed. when i tried steping in through Read
method,
the error is raised in memcopy assembly file.
can you please help me to fix this problem.
Regards
- Next message: Varadharajan. M.V: "Re: Doubt on GinaHook for Fingerprint Authentication..."
- Previous message: egar: "RE: Where are NTFS perms stored?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|