hi
i have a file with ASCII as well as extended ASCII. I am unble convert this values to binary. Any help plzzz
sidd.
0
Light Poster
Recommended Answers
Jump to PostYou have your "sr" and "sw" naming conventions reversed :D, but that is not your problem...
Your call to
b[i] = sw.Read();
will only read a character at a time, which is why you cannot get the values you expect, presumably.
Jump to PostI looked at the file and it appears to be formatted, but I'm not sure what the format is. However, the question remains as to what you are trying to do as you are currently just reading in each character one at a time and storing it in your
int[]
…
All 7 Replies
sidd.
0
Light Poster
sidd.
0
Light Poster
DdoubleD
315
Posting Shark
sidd.
0
Light Poster
DdoubleD
315
Posting Shark
sidd.
0
Light Poster
DdoubleD
315
Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.