Forums Register Login

Writing a file

+Pie Number of slices to send: Send
Hello. I'm having trouble to write a file the way I want. I want a .txt file to be written by a program in exactly this way:
1001
HP7
23
100
200

...but my program records this onto the file.
�HP7 d �

This is the code of my method


Note: I am using a Random Access File - raf
+Pie Number of slices to send: Send
You can use PrintWriter with its println() method to do that.
Every plan is a little cooler if you have a blimp. And a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 872 times.
Similar Threads
Error handling problem
Why is my type unexpected? required variable found value
Fibonacci Generators and the loop commands.
Inserting text to a file
Creating Random Access File
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:35:56.