The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 05:51 AM
search for files excluding binary files user_prady Shell Programming and Scripting 2 09-05-2007 12:18 AM
Joining two or more binary files together Boothy UNIX for Dummies Questions & Answers 5 02-07-2006 09:10 PM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 04:25 PM
Binary Files devildivine UNIX for Dummies Questions & Answers 1 10-16-2001 12:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-21-2004
wcRandThor wcRandThor is offline
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?
  #2 (permalink)  
Old 06-21-2004
wcRandThor wcRandThor is offline
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...
  #3 (permalink)  
Old 06-22-2004
wcRandThor wcRandThor is offline
Registered User
  
 

Join Date: Jun 2004
Posts: 3
Thumbs up

Yup, writting the code worked to make my binary data file.
Thanks!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0