# convert a file from binary to ascii and ascii to binary

I have no idea on how to do this program. if anyone has this code please email it to me at [email protected] The program has to work for any file.

THANKS

• : I have no idea on how to do this program. if anyone has this code please email it to me at [email protected] The program has to work for any file.
:
: THANKS
:
[blue]Both of these statements are correct:

All files are ASCII.
All files are binary.

You need to specify how exactly the problem stated. Because all files are sequences of bytes. And almost every byte can be represented by an ASCII symbol, example: byte 41h is a symbol 'A'. You do not need any conversion here. The interpretation of a byte is an ASCII symbol. And the oppositre is also correct - any ASCII symbol is a binary byte.

So, what exactly needed?
[/blue]
• : : I have no idea on how to do this program. if anyone has this code please email it to me at [email protected] The program has to work for any file.
: :
: : THANKS
: :
: [blue]Both of these statements are correct:
:
: All files are ASCII.
: All files are binary.
:
: You need to specify how exactly the problem stated. Because all files are sequences of bytes. And almost every byte can be represented by an ASCII symbol, example: byte 41h is a symbol 'A'. You do not need any conversion here. The interpretation of a byte is an ASCII symbol. And the oppositre is also correct - any ASCII symbol is a binary byte.
:
: So, what exactly needed?
: [/blue]
:
Well i have to convert a binary file into ascii and back again. it has to be in base64, i hope that's enough information

• : : : I have no idea on how to do this program. if anyone has this code please email it to me at [email protected] The program has to work for any file.
: : :
: : : THANKS
: : :
: : [blue]Both of these statements are correct:
: :
: : All files are ASCII.
: : All files are binary.
: :
: : You need to specify how exactly the problem stated. Because all files are sequences of bytes. And almost every byte can be represented by an ASCII symbol, example: byte 41h is a symbol 'A'. You do not need any conversion here. The interpretation of a byte is an ASCII symbol. And the oppositre is also correct - any ASCII symbol is a binary byte.
: :
: : So, what exactly needed?
: : [/blue]
: :
: Well i have to convert a binary file into ascii and back again. it has to be in base64, i hope that's enough information
: