473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing 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.....

ADDING TO IT .....

The file i have is a data file(in binary mode) which consists of
structures of type say --

struct tab {
char name;
int value;
} ; I have to write a C program which searches this file with the
name given by the user and returns or updates the value field of that
particular user.....
Nov 19 '07 #1
2 1628
On Nov 19, 11:10 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.....

ADDING TO IT .....

The file i have is a data file(in binary mode) which consists of
structures of type say --

struct tab {
char name;
int value;} ; I have to write a C program which searches this file with the

name given by the user and returns or updates the value field of that
particular user.....
Few design logics together with
string functions should help you.

Karthik Balaguru
Nov 19 '07 #2
On Nov 19, 11:10 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.....

ADDING TO IT .....

The file i have is a data file(in binary mode) which consists of
structures of type say --

struct tab {
char name;
int value;} ; I have to write a C program which searches this file with the

name given by the user and returns or updates the value field of that
particular user.....
refer man page of fopen, fread, fwrite and fclose.
Nov 19 '07 #3

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

Similar topics

5
4546
by: Fuzzyman | last post by:
Sorry if my terminology is wrong..... but I'm having intermittent problems dealing with accented characters in python. (Only from the 8 bit latin-1 character set I think..) I've written an...
0
1594
by: Marvin Suntonvipart | last post by:
------=_NextPart_000_0001_01C36962.E43D25F0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi all, I need help changing host privileges in mySQL server. I am...
5
17318
by: b.stewart | last post by:
I have only been using C++ for a few afternoons and i still get confused at nearly every line i type so maybe someone here can help me. Im trying to write a small program that can change a...
9
1671
by: vindhya | last post by:
I have a small query. If I have a character from alphabets and I want to change case of the same then how is it possible ? Here are the solutions, but can you suggest any other solution may be...
2
6183
by: Martín Marconcini | last post by:
Hello there, I'm writting (or trying to) a Console Application in C#. I has to be console. I remember back in the old days of Cobol (Unisys), Clipper and even Basic, I used to use a program...
18
34067
by: Ger | last post by:
I have not been able to find a simple, straight forward Unicode to ASCII string conversion function in VB.Net. Is that because such a function does not exists or do I overlook it? I found...
0
985
by: Ben | last post by:
I have an aspx page without anything special on it - just some English and Korean mixed text. My current advanced save encoding is set to Korean Codepage 949 (I don't know how it became that) and...
7
4019
by: Jeffrey Spoon | last post by:
Hello, I'm a bit stuck trying to convert a text file which contains extended ASCII text and changing the ASCII values so they become readable. I do this by subtracting 127 from the ASCII value....
3
1786
by: pavanponnapalli | last post by:
hi, how can i change a character into its equivalent ascii code? I have used ascii(char) function, but i has not worked. cheers, pavan
12
3956
by: jackson.rayne | last post by:
Hello, I am a javascript newbie and I'm stick at one place. I have a requirement where I will get a sentence in a variable example var v1 ="This is a sentence"
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.