Everything I could find worked off the tower. ( iow - seems to assume we are going to the internet ) If it is just a local testing and get-going question, then we might do it like this:
FileInputStream file = new FileInputStream ("test.txt");//
DataInputStream stream = new DataInputStream(file) ;//
Or something similar.
Further questions welcome, it is hard to tell if this is the question it sounds like. Additionally, information may be obtained by trapping the errant code in an exception block, then posting the message it gives.