I am writing a small file transfer program in JAVA. how to define sepefic file meaing i want to define spefic directory and then file. Can anyone provide a sample code its urgent. And i want to send all the files from specific folder when new file arrives into that folder. regards, sankar.s