Skip to content
Advertisement

Tag: filewriter

Is there a way where I can detect text and not overwrite it?

I am trying to write this myWriter.write(name + ” has scored ” + count + ” hacker levels in ” + duration +” milli-seconds with a delay of ” + delay + ” milli-seconds.”) onto my scores.txt file. This is what I want the output in the scores.txt file to look like: Write save here and then skip line Write

Remove hardcoded file path from java program

I have created a simple java program in which I create a text file and read the data written in it. The problem is that I don’t want to hardcode the path of the file because after developing the application I created a installer package for my program which allows users to install it on their systems. Now the problem

Advertisement