find 2 « Operation « Java I/O Q&A





1. File Finding on Unix plateform    forums.oracle.com

hey, I have a quick question when your doing a recursive file search/scan whatever, on unix/linux you have can symbolic links that can potentially point back to the parent directory or multiple directories above the immediate parent directory. Java interprets these links as folders, whats the best way to prevent infinite loops when scanning for a file on a unix platform. ...

3. Please help to find out whether a file was changed    forums.oracle.com

Dear all, I have a directory with different files, each file can be changed, how can I trigger the changes in a file and promt the user to update the document. Something like out sync. I think it could be a thred, which check the size of the file each five seconds for example. But I have seen programms, which did ...

4. finding from files    forums.oracle.com

5. What is the best approach to trying to find high freq hits in a file?    forums.oracle.com

"Best" depends on your specific situation and requirements. Simplest would be to maintain a Map of name to count, read line by line, and for each name, if it's already in the map, increment its count, and if not, add it to the map with a count of one More scalable and possibly more performant would be to stick the whole ...

6. The system cannot find the file specified    forums.oracle.com

7. The system cannot find the file specified.    forums.oracle.com

I don't have any clue why this error came up. I use JCreator 4.00 LE with SDK Version 6. I made a program, got it working great, compiled and tested multiple times, and then I added like 4 new lines of code, pressed compile again, and it came up with this error (The system cannot find the file specified). I tried ...

8. while loop won't find end of file    forums.oracle.com

9. Finding files when you develop web program    forums.oracle.com

Hi. I develop web app. I deploy application on GlassFish. I have stateless session bean. There code reads data from file and checks retrieved value. File f= new File("category.properties"); suppose to locate the file category.properties in Project's directory. But the program can't find it there. The file exist in that directory. Somehow that file was found before in Project's directory and ...