Click here to Skip to main content
15,792,870 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello guys, i am quite new to java and i am in great need of a sample code that writes string data contained within an array to a text file. i have already created an array and it contains names of continents but i don't know how to write that data to a file. a code sample would help.

thanks in advance
Updated 28-Oct-11 2:03am

It would help to do the homework by yourself. We will help you if you've got a problem with your code - but it has to be your code and not ours.
Share this answer
Take a look at this tutorial[^], which is surprisingly easy to find. A little bit of link tracking should also help you to understand arrays. Given both subjects the answer should be fairly easy to figure out.
Share this answer

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