python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Write to File doesn't persist between activities
I'm writing and reading from a file and it works perfectly fine. However when the activity is switched or the app is closed it appears that the file is deleted or some such as null is returned when tr...
jake.ward2639
Votes: 0
Answers: 1
Why BufferedWriter is writing the data into the file partially?
I am trying to write a json file using this code:
File f = new File("words_3.json");
if (!f.exists()) {
f.createNewFile();
}
if (fileWriter == nul...

eFortsHub
Votes: 0
Answers: 1
How do make a login function using BufferedReader?
I am a first-year programming student and I was tasked to make a Login and Register program using Java Swing (Application Window) and BufferedReader+Writer. I am now able to write a username and passw...
Alice Cherry
Votes: 0
Answers: 1
how to select data in txt file and print into different txt file java
I have a txt file called employees.txt which contain employee id and names. Their id starts with either 18,19 or 20. And have to look within the file if the line starts with 18 it needs to go to anoth...
Shawzz
Votes: 0
Answers: 2