Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Writing an integer array to a file...

694487Nov 8 2008 — edited Nov 8 2008
Okay, so I just wanna write a sorted integer array to file... but I'm having a problem or two.
int[] array = read(new File("C:\\college work\radixsort.txt");
radixSort(array, array.length);
That text file is a list of 30 numbers.

After the radixSort method is called the values in the text file are sorted into the correct order. Then I want to write the sorted values to a text file radixSorted.txt
I had too many problems with printArray() so I figured this could be easier.

I have tried FileInputStream and FileWriter but no luck.
I don't want the answer, but just something to help point me in the right direction.

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2008
Added on Nov 8 2008
25 comments
410 views