hi all,
i guess that u have seen this kind of question hundreds of times, but i cant find anything on the search so here it is.
I want to save some numbers on a file, and then access them.
i have saved the numbers using PrintWriter, and it comes out just fine when i open the file. The problem is that i cant open them
i have used a line for each number, so i nead something like readln, or readLine. i found the BufferedReader, but i am not sure how to use it, let alone that this can only read lines of string, and i cant change them to int.
Thanks
i guess that u have seen this kind of question hundreds of times, but i cant find anything on the search so here it is.
I want to save some numbers on a file, and then access them.
i have saved the numbers using PrintWriter, and it comes out just fine when i open the file. The problem is that i cant open them
i have used a line for each number, so i nead something like readln, or readLine. i found the BufferedReader, but i am not sure how to use it, let alone that this can only read lines of string, and i cant change them to int.
Thanks