![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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
|
|||
|
|||
|
Yup, writting the code worked to make my binary data file.
Thanks! |
|||
| Google The UNIX and Linux Forums |