I tried to run this program and it runs.But when I go and open the file account.txt it says character encoding problem.it is created but doesn't open.help please!
thank you in advance.

Your program is writing the file in binary mode so you can't open it with a text editor such as Notepad.exe.

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.