Possible Duplicate:
Java: Reading integers from a file into an array
I want to read integer values from a text file say contactids.txt. in the file i have values like
12345
3456778
234234234
34234324234
i Want to read them from a text file…please help
You might want to do something like this (if you’re using java 5 and more)
Via Julian Grenier from Reading Integers From A File In An Array