I was wondering what the code is to get the text from a file and display it on a text field. I tried some methods I found on the sun site and I couldn't get it to work.
Thanks in advance.
String contents = new String();
String line = new String();
File f = new File("C:\\Temp\\test.html"
FileInputStream fis = new FileInputStream(f);
BufferedReader br = new BufferedReader(new InputStreamReader(fis));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.