-
October 2nd, 2003, 01:48 AM
#1
How to open a file in binary mode?
How to open a file in binary mode and write it back in text mode
Thaks
-
October 2nd, 2003, 02:25 AM
#2
hi
i am not getting your problem..
but if you want to open file in binary mode then us CFile::typeBinary mode to open the file.
if this doesnot solves the problem then please specify the problem in detail
dhani99
have a nice day!
-
October 2nd, 2003, 02:27 AM
#3
trying to read a gif file
Hi, I am trying to read a gif file in binary mode and want to write that file in text mode.
-
October 2nd, 2003, 02:27 AM
#4
Is this the same question as How to open a file in binary mode?? That question is very strange and probably it is not possible to do what you are asking.
If you are not using MFC then in this forum you need to say so.
-
October 2nd, 2003, 02:30 AM
#5
-
October 2nd, 2003, 11:04 AM
#6
You don't want to write a gif file in text mode. Text mode does two things as I understand it (and neither apply to GIF files):
1. it handles the EOF character gracefully
2. it converts carriage return–linefeed to linefeeds on input and back to carriage return–linefeed on output.
You do NOT want either of this things to happen in a GIF file.
bytz
--This signature left intentionally blank--
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|