That would give the number of bytes. Is that what you need?
I was thinking of using a while loop with hasNextLine() to count the lines.
Type: Posts; User: Starstreak
That would give the number of bytes. Is that what you need?
I was thinking of using a while loop with hasNextLine() to count the lines.
If the data in the file varies, then consider setting the size of the array at runtime.