Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: binary exec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 18 Topic 45804 of 47034
Post > Topic >>

Re: binary executable

by Sherman Pendley <spamtrap@[EMAIL PROTECTED] > May 8, 2008 at 10:58 AM

Erwin Moller <hi.steven.tu@[EMAIL PROTECTED]
> writes:

> Why is a binary file executable? Is any binary file executable? Is
> only binary file executable? Are all executable files binary?

Some systems distinguish between text and non-text (i.e. binary) files.
Not all do. The ones that do, will perform various text translations
when writing to a text file.

> What is
> the connection between the attribute of binary and that of executable?

There is none. What makes a file "binary" is not its contents, but whether
or
not you included ios::binary in the optional flags argument to
fstream::open.

On systems that care, you can open a file that has text in it as binary to
avoid the translations that would happen if you opened it as text. You can
also do the opposite, but that's rarely useful; text-mode translations
generally FUBAR any binary data.

sherm--

-- 
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
 




 18 Posts in Topic:
binary executable
Erwin Moller <hi.steve  2008-05-07 19:20:04 
Re: binary executable
"Victor Bazarov"  2008-05-07 22:50:09 
Re: binary executable
Erwin Moller <hi.steve  2008-05-07 21:04:13 
Re: binary executable
Ian Collins <ian-news@  2008-05-08 16:08:08 
Re: binary executable
Erwin Moller <hi.steve  2008-05-07 21:34:10 
Re: binary executable
Ian Collins <ian-news@  2008-05-08 16:42:32 
Re: binary executable
Joe Greer <jgreer@[EMA  2008-05-08 18:44:22 
Re: binary executable
"Victor Bazarov"  2008-05-08 13:03:23 
Re: binary executable
ram@[EMAIL PROTECTED] (S  2008-05-08 17:16:44 
Re: binary executable
Daniel Pitts <newsgrou  2008-05-08 18:24:51 
Re: binary executable
Krice <paulkp@[EMAIL P  2008-05-08 03:36:22 
Re: binary executable
Lionel B <me@[EMAIL PR  2008-05-08 11:44:57 
Re: binary executable
Sherman Pendley <spamt  2008-05-08 10:58:10 
Re: binary executable
Krice <paulkp@[EMAIL P  2008-05-08 10:20:17 
Re: binary executable
"robertwessel2@[EMAI  2008-05-08 16:02:02 
Re: binary executable
soscpd <soscpd@[EMAIL   2008-05-09 00:55:53 
Re: binary executable
James Kanze <james.kan  2008-05-09 06:07:46 
Re: binary executable
Lionel B <me@[EMAIL PR  2008-05-09 14:07:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:58:10 CDT 2008.