I did the task and it's valid, but i tested my code and got this question now:
My fileinput was:
Start
hi, this is a test.
how are you?
thank you for visiting
blank
blank
blank
end.
But when i checked outcome in the textfile it was:.dne
knalb
knalb
knalb
gnitisiv rof uoy knaht
?uoy era woh
.tset a si siht ,ih
tratS
So it worked, but there are additional line breaks (not one extra per line break tho, there would be one missing before ".dne").
Oddly enough when i red the destination file via FileInputStream to the console the output was as should be: reversed without extra line breaks.
Why is this, and why does it look different in the file than from what the FileInputStream reads?
Thanks for answering.