will it copy binary also ??

This is a discussion on will it copy binary also ?? within the Linux Programming forums, part of the Platform Specific Boards category; Hi all friendz, this question is in ref of 1.3 program of maurice j. bach, it is a simple copy ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    17

    Question will it copy binary also ??

    Hi all friendz,
    this question is in ref of 1.3 program of maurice j. bach,
    it is a simple copy program, which uses the read and write system call, i just want to know that will this program copy binary also.
    if you are confused about code, consider a simplest copy program which uses read and write system call...
    thankx in advance

  2. #2
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    There is no difference in binary and ascii data in Unix. The only difference in the DOS world is that there is an extra \013 at the end of DOS lines.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    17
    Quote Originally Posted by Kennedy
    There is no difference in binary and ascii data in Unix. The only difference in the DOS world is that there is an extra \013 at the end of DOS lines.
    so you mean it will copy the binary file perfectly...
    plz reply

  4. #4
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    There is no such animal in Unix. There is only file. . . not binary file. . . not text file. As to whether it will "copy the binary file perfectly" I couldn't say, I don't see the code.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,442
    Mmm, 5 seconds to compile and try to see if it will copy itself, or several hours arguing over it via a message board.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Quote Originally Posted by Salem
    Mmm, 5 seconds to compile and try to see if it will copy itself, or several hours arguing over it via a message board.

    sssshhhhh!!!!
    don't disturb the humourous thread, we do need something to lighten the mood occasionally in life.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. denary to binary problems
    By redruby147 in forum C Programming
    Replies: 6
    Last Post: 02-09-2009, 04:21 PM
  2. how to copy binary files using Unix API's
    By rohan_ak1 in forum C Programming
    Replies: 25
    Last Post: 05-07-2008, 09:12 AM
  3. I need help with decimal to binary Algorithm
    By webznz in forum C Programming
    Replies: 4
    Last Post: 03-13-2008, 03:52 AM
  4. arrays vs lists? And containers in general!
    By clegs in forum C++ Programming
    Replies: 22
    Last Post: 12-03-2007, 01:02 PM
  5. binary
    By webturtle0 in forum A Brief History of Cprogramming.com
    Replies: 52
    Last Post: 12-05-2002, 01:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21