The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reg : binary files srujana Shell Programming and Scripting 13 11-15-2007 02:51 AM
search for files excluding binary files user_prady Shell Programming and Scripting 2 09-04-2007 09:18 PM
Joining two or more binary files together Boothy UNIX for Dummies Questions & Answers 5 02-07-2006 06:10 PM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 01:25 PM
Binary Files devildivine UNIX for Dummies Questions & Answers 1 10-16-2001 09:05 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-21-2004
Registered User
 

Join Date: Jun 2004
Posts: 3
Angry Binary Files

Here's the problem...

I'm using a simulator on UNIX, and it requires a filename where bits are stored, it should read them out and do whatever with them at that point..

So what i'm trying to do is make a binary file on UNIX. On my PC i can use MSDEV, or any of my C++ compilers to generate a .bin file, is there a way to easly do this on UNIX?

I tried making a binary file on the PC and FTP-ing it over to my UNIX box, but the simulator treated it as a text document and read them it as a bunch of 30's and 31's (ASCII 0's and 1's).

Any ideas anyone?
Reply With Quote
Forum Sponsor
  #2  
Old 06-21-2004
Registered User
 

Join Date: Jun 2004
Posts: 3
Well, what I'm looking for is indeed a binary data file for the simulator... I understand little of UNIX because I only use it for work, and have had little exposure to it outside of that.

All I know of the system is it's called solaris, it's not a Linux system, I don't know what hardware it runs on, or how to find that out.

I'll try to be a little more specific on what i'm attempting:
* I need a file full of bits. (so i'm assuming that has to be a binary file).
* The file will be opened by the simulator and read out 1 byte at a time.

When I made a text file on emacs and wrote in it:
11001110000...

The simulator opened the file and read out the first 8 char's (left to right) and treated them as ASCII chars instead of reading out the first 8 bits and treating it as a byte of data like I had hoped for.

I'm sorry if i'm not making this very clear... I thought it would be an easy thing to just make a file that the simulator could read...
Reply With Quote
  #3  
Old 06-22-2004
Registered User
 

Join Date: Jun 2004
Posts: 3
Thumbs up

Yup, writting the code worked to make my binary data file.
Thanks!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0