I should have mentioned that in my getFileSize method I do have a while loop and a counter. Its the counter that is returned.
I have it working this way. Thanks for the replies.
Type: Posts; User: StephenCoyle
I should have mentioned that in my getFileSize method I do have a while loop and a counter. Its the counter that is returned.
I have it working this way. Thanks for the replies.
Thanks. I was thinking something like that.
What I have done now, is just created a getFileSize method that takes the file name as a parameter and returns an int (the size of the file).
I have written a simple program that reads in 30 first names from a txt file into an array and 20 surnames from another txt file into another array. All I want to know is, is it possible to create an...