Basically I am trying to take information from a text file and turn it into a string. The code I have is:
FileInputStream inputStream = new FileInputStream("filename.txt");
try
{
String everything = IOUtils.toString(inputStream);
}
finally
{
inputStream.close();
}
the error message I get is -->
java:53: cannot find symbol
symbol : class IOUtils
location: class CheckSystem
I assumed this was because of my imports, but I have io and util and even text imported (just as below)
import java.util.*;
import java.text.*;
import java.io.*;
Why can't I access the IOUtils class and its methods? If that cannot be answered, an alternative but very simple means of reading a text file into a string would be fine.