Cannot Read file using ifstream

From: shahid (fake_at_microsoft.com)
Date: 11/22/04


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



Relevant Pages

  • Re: org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    ... you're calling sent back some ill-formed XML: Missing the end tag, ... exactly as the error message indicates. ... getServiceIdsReturn> ...
    (comp.lang.java.programmer)
  • Re: ASP.NET applications not working??
    ... The one thing I can think of to help you get the error message, ... setting the customErrors tag in the proper web.config file. ... a "web.config" configuration file located in the root directory of the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Wayne-In-Manchester
    ... Do you have a control on the subform named License Tag Number? ... And if the line fails, what error message do you get? ... The error message often points the problem. ...
    (microsoft.public.access.gettingstarted)
  • Re: org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    ... calling sent back some ill-formed XML: Missing the end tag, ... as the error message indicates. ... getServiceIdsReturn> ...
    (comp.lang.java.programmer)
  • Re: object reference not set to an instance of an object
    ... Do you have the runat="server" tag in your btnEdit? ... Object reference not set to an instance of ... >> however I'm getting the error message in my subject heading. ...
    (microsoft.public.dotnet.framework.aspnet)