Darrien Kamai wrote:Ok thanks Winston that helped with the error. As far as a getfile() method i'm really not sure how to do that because my professor hasn't tought it and my book doesn't mention it...
A quick peek ahead for you then

:
Strings are very powerful, but in this case you actually want a File, so it's usually better to return one.
The nice thing about doing it that way is that you can then also validate it without changing anything else, viz:
Don't worry about it too much at the moment, but remember the message: Strings make a poor substitute for a proper class.
ok finally figured it out, had to make more methods instead of 1 really complex one
As Campbell said: a valuable lesson, and
you should be proud that you've learnt it so quickly.
Winston