Re: Noob File IO question
- From: Barry Schwarz <schwarzb@xxxxxxxxx>
- Date: Thu, 05 Apr 2007 16:34:50 -0700
On Wed, 04 Apr 2007 00:45:13 -0500, sore eyes
<are_you_kidding@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi
I just downloaded the free Watcom compiler and am having a little
trouble with File IO http://www.openwatcom.org/index.php/Download
I downloaded the following example, commented out the Command line
arguments so that I could debug more easily. The example is a simple
file copy. and it works. but I would like to customize this to
automate some redundant changes in some large files.
Here's the problem: When I debug this and watch the input buffer
buf[], I dont see a stream of characters instead I see a sequence
of integers. I suppose these are probably the chararters but every
other integer in the array is a 0. I am guessing the file uses 16 bit
characters and my program thinks they are 8 bit. I tried defining
UNICODE = 1 in my project setting but that didn't work.
How was newcode.html built? Have you looked at it with a hex editor
to see what it really contains?
Have you tried to create a simple text file whose contents you know
and test your program on that?
Remove del for email
.
- References:
- Noob File IO question
- From: sore eyes
- Noob File IO question
- Prev by Date: Re: expression evaluation doubt!
- Next by Date: Re: brain teasers
- Previous by thread: Re: Noob File IO question
- Next by thread: K&R2, 1.5.1 example
- Index(es):
Relevant Pages
|
Loading