Problem with fread()
From: Alain Lafon (preek_at_gmx.at)
Date: 01/29/04
- Next message: William Hughes: "Re: function to round a float to an int?"
- Previous message: Zoran Cutura: "Re: Use of malloc()"
- Next in thread: Jack Klein: "Re: Problem with fread()"
- Reply: Jack Klein: "Re: Problem with fread()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: William Hughes: "Re: function to round a float to an int?"
- Previous message: Zoran Cutura: "Re: Use of malloc()"
- Next in thread: Jack Klein: "Re: Problem with fread()"
- Reply: Jack Klein: "Re: Problem with fread()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|