B
barry
Hi, a real quicky question.
Can I retrieve the filename from a FileInputStream?
private String getFilename(FileInputStream fis)
{
return "test.dat"; //test.dat hard-coded
}
fis has been created by
FileInputStream fis=new FileInputStream(new File("c:\\test.dat"));
but I want getFilename(..) to work with any filename, not just test.dat.
Thank you
Barry
Can I retrieve the filename from a FileInputStream?
private String getFilename(FileInputStream fis)
{
return "test.dat"; //test.dat hard-coded
}
fis has been created by
FileInputStream fis=new FileInputStream(new File("c:\\test.dat"));
but I want getFilename(..) to work with any filename, not just test.dat.
Thank you
Barry