Problem with fread()

From: Alain Lafon (preek_at_gmx.at)
Date: 01/29/04


Date: Thu, 29 Jan 2004 05:35:36 +0100

Helas,

I got something that should be a minor problem, but anyhow it isn't to me
right now.

A little code fragment:
fread(&file_qn, x, 1, fp_q);

The corresponding text file looks like this:
456 5 1.txt%&'
I've already skipped the '456' part with fseek, read the '5' with scanf,
file_qn should now get the '1.txt' part and x is the length of that string,
which is 5.

Thanks for any help in advance !

Alain.



Relevant Pages

  • Re: ADO error trapping not working
    ... the second one work if you havent use the explicit option:P ... unless you convert the number to a string. ... Error statement, and everything is in one method/sub/program. ... in the code fragment originally posted how the error is raised or how we get ...
    (microsoft.public.vb.database.ado)
  • Eventlog application registration error
    ... security error. ... Here's the code fragment that's causing the error: ... Dim source As String = "Report Request Confirmation" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: regex result question
    ... It did capture the date string ... my actual code fragment for the pattern is like the attached txt file ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problem with fread()
    ... > A little code fragment: ... Post again and explain what your "minor problem" ... Post a complete compilable code snippet, ... error messages, copy the text and paste into the body of your message. ...
    (comp.lang.c)
  • SQL parsing error
    ... When I send this SELECT string: ... in this code fragment: ... DataTabledatatables, Int32 startRecord, Int32 maxRecords, String srcTable, ... Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior ...
    (microsoft.public.sqlserver.ce)