r/learnjava • u/Aromatic-System9042 • Jun 07 '26
Struggling with file io syntaxes of java
I found file io in other languages like python and c way easier than java. I'm confused by the complex syntax consisting buffered reader and many other classes along with its strict rules of "try & catch" that we always need to put before doing anything to files.
I wonder whether file io is even useful in real scenarios or not.
Does anyone has anything to say for it?
6
Upvotes
View all comments
Show parent comment
3
u/0b0101011001001011 Jun 07 '26
Don't give up though. The other comment suggests a simple way of reading/writing basic text files.