Click here to Skip to main content
15,030,863 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:

I wanted to write a java program which will read a file from user and encode the text of that file into binary form.
Similarly for decoding, take file from user and convert the binary form into text.

Richard MacCutchan 17-Nov-13 12:33pm
Search Google for "Java encryption".
Sergey Alexandrovich Kryukov 17-Nov-13 15:22pm
You don't understand a very basic thing: all files are already binary, even the text ones. If you mean presentation of binary in the form of string, like "01010001", this is a different story, but is too elementary thing. You really need to work and learn by yourself.

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900