Link to home
Start Free TrialLog in
Avatar of wilsontang
wilsontang

asked on

Get file name into a directory

hi experts,

      How to capture the file name into a specific directory? Do I need to use the package "JNDI"? Please help.
ASKER CERTIFIED SOLUTION
Avatar of m_onkey_boy
m_onkey_boy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of m_onkey_boy
m_onkey_boy

That was to view the files in a directory.  To create a new one:

File f = new File("c:\\dir\\myFile.tmp");

FileOutputStream fis = new FileOutputStream(f);

// write to file....