It does print the first three line of the txt file and displays the result.
Could you expand a little bit more on this please!
Type: Posts; User: s.sariyan
It does print the first three line of the txt file and displays the result.
Could you expand a little bit more on this please!
is it possible to use a for loop to read through the text file and calculate the time. Or a for loop within a for loop !
I am trying to calculate the time for each journey but to do that i need to call the values in the text file. I dont actually know how to add my calculation to the above code. :)
I don't know what to use to set a specific value in the text file, for instant how do I assign the third line of the text file into a variable.
Thanks I think to compare the result an if statement...
Hi, thanks for your reply, I have no problem with reading and writing the file, i am struggling with calculating the time taken for each journey and compare it with user input. : )
Hi, I am a complete beginner to java programming,(root planner) I am trying to write a program which request a time from the user then compares it with the data in the text file. text file contains...