Hello, I read some of the java docs, but examples-mainly- focus on .txt files, I am having difficulties to read from different files, like .pdf, or .xls, part of my program: FileRead f = new FileRead();
f.readFile(); }
void readFile() {
DataInputStream dis = null;
String record = null;
int count = 0; try {
File f = new File("myfile.pdf");
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis); dis = new DataInputStream(bis);