For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > January 2006 > retrieve files with only .java not .java.bat urgent









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author retrieve files with only .java not .java.bat urgent
swarnad28

2006-01-03, 11:56 pm

Hi,

I am passing a directory name and retriving the .java files.
My problem is i dont want to retrive files of ".java.bat" type.

this is the piece for code where i have put the condition.

if (-f and /.java/) {
}

is there any way to retrieve only files with ".java" extension.If so wht is the condition i have to give.Please help me.It is quite urgent.

Thanks,
Swarna.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com