/** * Created by IntelliJ IDEA. * User: me * Date: 13.09.2006 * Time: 19:10:04 * To change this template use File | Settings | File Templates. */ public class FindChar { if (args.length != 2) "It's needed: <symbol> and <file name>"); int match = args[0].charAt(0); int ch; while((ch = in.read()) != -1) { if (ch == match) { "' at " + in.getLineNumber() + " string"); return; } } fileIn.close(); } }