Thread: will it copy binary also ??

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  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, 05: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, 02:02 PM
  5. binary
    By webturtle0 in forum A Brief History of Cprogramming.com
    Replies: 52
    Last Post: 12-05-2002, 02:46 AM