Firstly I apologise for asking this as I feel I should be able to sort this but I can't seem to figure out what is wrong here. I have this code:
and I am getting the output:I have checked the path and the file is there, I have checked the permissions and changed them so that all users have complete access to this file. I have added a screenshot of the file in its directory. I am using NetBeans on Ubuntu if this makes any difference. Please show me the basic mistake I am making here.
[edit] - It seems the problem is with NetBeans as I have just tried it in Eclipse and it works as expected. Has anyone else ever experienced this.