hi all, is there any method to find the position of a character , say "}" in a file. Thanks in advance Rajeev.. Sun Certified Java Programmer. Sun Certified Web Component Developer.
SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
posted 12 years ago
Not in a single method. Probably the simplest approach is to first read the file contents into a String, and then search the String using the indexOf() method. Or for more elaborate types of searches you can use the java.util.regex classes. Does that give you some idea how to proceed?