// NonAscii.java -- recursive, depth first search of a directory // Erica Asai // Time-stamp: <2004-01-20 18:42:54 Asai> // Comments: // NonAscii.java searches every file under a directory which is // specified as an argument (current directory if no directory is // specified), and prints out the path names of the files that have // any character that contain non BASIC_LATIN character. import java.io.*; public class NonAscii { public void depthFirstSearch(File dir) { try { int i; File [] files; for(files=dir.listFiles(), i=0;files!=null && i0) dirName=args[0]; na.depthFirstSearch(new File(dirName)); } }