line-breaks tag

1 questions


1 answers
98 views
0
To clear a line break from a file

How do I get rid of all line breaks when I read a text file in Java? String text = readFileAsString(textfile.txt);text.replace(\n, );I tried it like this, but it didn't work.


© 2024 OneMinuteCode. All rights reserved.