Advertisement

1 - 10 of 60 containing alltags:("fread") (0 seconds)
Is there any harm in using old-school C code inside of a C++ application? If so, please explain the harm in using fread() in C++ as opposed to the fstream and printf() as opposed to cout. Is ...
Zones: C++Date Answered: 08/02/2001 Grade: A Views: 12
heres the scenario: I have a user input files to read some information on, when certian files are entered it hangs. Actually the only file it hangs on that I know of for know is the '/proc/kmsg' b...
Zones: CDate Answered: 09/03/2003 Grade: A Views: 0
I am using fread to read a binary file.  The binary file may range from 2 - 9MB in size.  I have 2 structs defined. typedef struct  {       unsigned char type[10];       unsigned short datasize; } te...
Zones: C++Date Answered: 07/02/2006 Grade: A Views: 0
Is //C++ unsigned int iNumberVertices = 0; fread(&iNumberVertices, 1, 2, fp); equivalent to //Java int iNumberVertices = RAF.read() | RAF.read()<<8; ?
Zones: JavaDate Answered: 07/16/2007 Grade: A Views: 0
how to read this xml file(ex: dudu.xml), edit it and write it back.. using c / c++ read this: <dudu> <data> <name>sss</name> <msg>ddd</msg> </data> <data> <name>ccc</name> <msg>rrr</ms...
Zones: CDate Answered: 01/05/2004 Grade: B Views: 0
Hi. In a project I'm working on I need to stream video from the harddrive. The video is in a raw format, so is pretty big. (640x480x16bits x 30 fps = 17mb/s) Machines that won't be able to read...
Zones: Windows ProgrammingDate Answered: 06/13/2003 Grade: B Views: 0
I'm working on a function that processes a large number of files. About 95% of are processed without a problem, but the rest aren't read completely. The problem occurs on the first call to fread, w...
Zones: C++Date Answered: 08/12/2003 Grade: A Views: 0
Hi.Experts: Code following: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: #include<stdio.h> typedef struct tagPeople {       char sex;       unsigned int age; } People; voi...
Zones: CDate Answered: 08/27/2003 Grade: A Views: 12
In a file, I have the hex bytes: 0x00 0x08 0x08 0x09 0x00 0x00 When I try to get those 4 bytes using the following: int hexBytes; fread(&hexBytes,sizeof(int),1,f); I would expect to the th...
Zones: C++Date Answered: 11/28/2003 Grade: A Views: 0
I have a very weird problem with the fread() command... I'm trying to write to a file and read it back (duh). I'm writing and reading unsigned char[14]s with: fwrite/fread(&PointData, sizeof(ch...
Zones: C++Date Answered: 01/23/2005 Grade: A Views: 0