Re: Very strange problem using FWRITE() to write data to a binary file
From: Walter Roberson (roberson_at_ibd.nrc-cnrc.gc.ca)
Date: 02/08/05
- Next message: Michael Mair: "Re: Return to Start of Line?"
- Previous message: Norbert Juffa: "Re: Interesting Quest - Any optimized way to find if consective one's exist in a word!"
- In reply to: leonecla_at_yahoo.it: "Very strange problem using FWRITE() to write data to a binary file"
- Next in thread: Claudio: "Re: Very strange problem using FWRITE() to write data to a binary file"
- Reply: Claudio: "Re: Very strange problem using FWRITE() to write data to a binary file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 8 Feb 2005 16:43:06 GMT
In article <1107880512.882536.191510@g14g2000cwa.googlegroups.com>,
<leonecla@yahoo.it> wrote:
:I'm facing a very very strange problem with a very very simple C
:program...
:If I execute this code (compile with Visual Studio 6) and then open the
:"data_8bit.bin" file (inside the Visual Studio), it is displayed as a
:binary file, and I can see the data "07 07 07 17". It is correct.
:Now, if in the code above I assign to w the value 0x07070707 (instead
:of 0x17070707), execute the code and open the "data_8bit.bin", it
:contains no more binary data...
:The same happens with 0x99999999, for example.
This could be an artifact of whatever Visual Studio file viewer
facility you are using -- the viewer could be looking at the first
few bytes of the file to figure out what kind of file it is
and reacting differently for different sequences.
-- Disobey all self-referential sentences!
- Next message: Michael Mair: "Re: Return to Start of Line?"
- Previous message: Norbert Juffa: "Re: Interesting Quest - Any optimized way to find if consective one's exist in a word!"
- In reply to: leonecla_at_yahoo.it: "Very strange problem using FWRITE() to write data to a binary file"
- Next in thread: Claudio: "Re: Very strange problem using FWRITE() to write data to a binary file"
- Reply: Claudio: "Re: Very strange problem using FWRITE() to write data to a binary file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|