private String readFromFile() {
        /**This Method Reads from a specific file **/
        String sourceContents = "";
        try {
            URL fileLoc = new URL("http://www.digitalworlddevelopment.com/Java/content.txt");
            String host=fileLoc.getHost();
            URI fileName = fileLoc.toURI();
            String Path = fileName.getPath();
            System.out.println("host: "+host);            
            System.out.println("Path: "+Path);
            /*
            PlainTextInputStream fileStream = (PlainTextInputStream) fileLoc.getContent();
            BufferedReader dis = new BufferedReader(new InputStreamReader(fileStream));
            ArrayList list = new ArrayList();
            while(dis.read()>0){
            String line = dis.readLine();
            line += " \n";
            sourceContents+= line;
            }//end while
            
            dis.close();
            fileStream.close();*/
            //fileStream.sourceContents = new String();
            //sourceContents = (String) fileContents;
        //String inputFileName = fileLoc.openStream();
        //Code to read from file
        File inputFile = new File(host+Path);
        FileInputStream in = new FileInputStream(inputFile);
        //InputStream in = fileLoc.openStream();

        byte bt[] = new byte[(int)inputFile.length()];

        in.read(bt);
        sourceContents = new String(bt);
        in.close(); 

        } catch (java.io.IOException e) {
            JOptionPane.showMessageDialog(jScrollPaneText, "Error: " + e, "Applet Error", JOptionPane.ERROR_MESSAGE);
        }
        catch (URISyntaxException ex){
            JOptionPane.showMessageDialog(jScrollPaneText, "Error: " + ex, "Applet Error", JOptionPane.ERROR_MESSAGE);
        }
        return sourceContents;
    }