473,563 Members | 2,697 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 1635
On Nov 19, 11:10 am, swetha <laptop...@gmai l.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...@gmai l.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
4551
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 anagram finder that produces anagrams from a dictionary of words. The user can load their own dictionary. (...
0
1597
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 trying to access mySQL server from a remote computer that doesn't have access
5
17324
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 word/name into ASCII decimal for each character you type on the ...'black screen?' (dont know what to call it but i mean the screen that appears when you...
9
1674
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 using bit operations. Solution#1 : Use tolower/toupper Solution#2 : Add/Subtract 32 Thanks in advance
2
6190
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 (its name i cannot recall now...) where I designed the "screen" using this "program" and then saved it into an ASCII file. (thus, using 'extended'...
18
34093
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 Encoding.Convert, but that needs byte arrays. Thanks, /Ger
0
987
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 I need to change it to UTF-8. I cannot find any place where I can change the default encoding (the Korean just shows up as messed up ascii on the...
7
4024
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. However, at the moment I am just getting more gibberish so I'm probably doing something wrong. I tried using ASCII Encoding before to get the ASCII...
3
1793
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
3970
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
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5208
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.