473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Binary file to ASCII....

HI Every1,
I have a file in binary format. Using a C program i
have to read that file and need to make some changes . So i wanted to
convert that into ACII format.Can any1 suggest me how to do that
please.....

Thanks In Advance....
Swetha..
Nov 19 '07 #1
6 2303

"swetha" <la*******@gmail.comwrote in message
news:1d**********************************@f3g2000h sg.googlegroups.com...
HI Every1,
I have a file in binary format. Using a C program i
have to read that file and need to make some changes . So i wanted to
convert that into ACII format.Can any1 suggest me how to do that
please.....
question is too vague...

for example, do you want a hexdump?
do you want to transfer binary payload in a textual container (base64)?
do you want to decompose some binary format into a human readable form?
....

Thanks In Advance....
Swetha..

Nov 19 '07 #2
On Nov 18, 8:01 pm, swetha <laptop...@gmail.comwrote:
HI Every1,
I have a file in binary format. Using a C program i
have to read that file and need to make some changes . So i wanted to
convert that into ACII format.Can any1 suggest me how to do that
please.....

Thanks In Advance....
Swetha..

I can make the change for you and send the result to your instructor.
Just send me the email address of your instructor with the file.

Ed
Nov 19 '07 #3

"Ed Prochak" <ed*******@gmail.comwrote in message
news:b7**********************************@b32g2000 hsa.googlegroups.com...
On Nov 18, 8:01 pm, swetha <laptop...@gmail.comwrote:
>HI Every1,
I have a file in binary format. Using a C program i
have to read that file and need to make some changes . So i wanted to
convert that into ACII format.Can any1 suggest me how to do that
please.....

Thanks In Advance....
Swetha..


I can make the change for you and send the result to your instructor.
Just send me the email address of your instructor with the file.
just wondering:
what exactly in this convinces you it is a homework question?...
I could not tell.

to me it sounds more like a vague newb question...

Ed

Nov 19 '07 #4
"swetha" writes:
I have a file in binary format. Using a C program i
have to read that file and need to make some changes . So i wanted to
convert that into ACII format.Can any1 suggest me how to do that
please.....
What if you were told to produce a hard copy (printed) version of the file,
could you do that? That's pretty much what an ASCII file is, except it
isn't printed or displayed on a monitor, the resultant output is put in,
well, a file. .

If you couldn't do that, why not? There must be some way, *known to you*,
of representing each datum in the original binary file, no exceptions
permitted.
Nov 19 '07 #5
On Nov 19, 6:01 am, swetha <laptop...@gmail.comwrote:
HI Every1,
I have a file in binary format. Using a C program i
have to read that file and need to make some changes . So i wanted to
convert that into ACII format.Can any1 suggest me how to do that
please.....
1. make your question clear.
Binary file means ELF-etc file or binary data file.

"You can read binary data file <if it was written using fwrite etc>
using fread." <this may be the answer<very simillar to you read
ascii file>

-Raxit
>
Thanks In Advance....
Swetha..
Nov 19 '07 #6
In article
<de**********************************@s8g2000prg.g ooglegroups.com>,
Sheth Raxit <ra************@gmail.comwrote on Monday 19 Nov 2007 5:54
pm:
On Nov 19, 6:01 am, swetha <laptop...@gmail.comwrote:
>HI Every1,
I have a file in binary format. Using a C program
i
have to read that file and need to make some changes . So i wanted to
convert that into ACII format.Can any1 suggest me how to do that
please.....

1. make your question clear.
Binary file means ELF-etc file or binary data file.
She made it reasonably clear in a later post that the file was a program
data file consisting of structures.
"You can read binary data file <if it was written using fwrite etc>
using fread."
What are you intending to convey by using angled brackets? Note that
getc() and fgetc() can be used on non-text files too. However it's not
as convenient as fread().
<this may be the answer<very simillar to you read ascii file>
What's up with all the angled brackets?

Nov 19 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bix | last post by:
As this is my very first post, I'd like to give thanks to all who support this with their help. Hopefully, this question hasn't been answered (too many times) before... If anyone could explain...
11
by: rbt | last post by:
Is there an easy way to exclude binary files (I'm working on Windows XP) from the file list returned by os.walk()? Also, when reading files and you're unsure as to whether or not they are ascii...
1
by: Ferran Foz | last post by:
Hello, I'm using ADODB.Stream to open a binary file on the server and write it down to the browser using Response.BinaryWrite. It's working fine, but i need to make some changes to the binary...
10
by: J. Campbell | last post by:
OK...I'm in the process of learning C++. In my old (non-portable) programming days, I made use of binary files a lot...not worrying about endian issues. I'm starting to understand why C++ makes...
13
by: greg | last post by:
Hello, I'm searching to know if a local file is ascii or binary. I couldn't find it in the manual, is there a way to know that ? thanks, -- greg
10
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
6
by: SandyMan | last post by:
Hi, I am able to open a binary file for reading but can someone tell me as how to go about converting a Binary file to ASCII file using C. Thanks In Advance SandyMan
68
by: vim | last post by:
hello everybody Plz tell the differance between binary file and ascii file............... Thanks in advance vim
11
by: raghu | last post by:
how do i convert a text entered through keyboard into a binary format? Should I first convert each letter of the text to ASCII and then binary??? Is this method correct? Please advise. Thanks...
5
by: bwv539 | last post by:
I have to output data into a binary file, that will contain data coming from a four channel measurement instrument. Since those data have to be read from another C program somewhere else, the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.