I think your problem is how to capture the content of a text file,
Here's a sample snippet....
- private byte[] OpenFile(String filepath) throws Exception{
-
File file = new File(path);
-
FileInputStream read = new FileInputStream(file);
-
byte captured[] = new byte[(int)file.length()];
-
read.read(getFile);
-
read.close();
-
return captured;
-
}
try and OBSERVE.....
You can play the returned array of bytes.....
or convert it into String if you're going to display it in swing/awt component