I have some code to read the lines from a file, I would like to recognize when the line starts or the fisrt character (not blank) is \'*\' and ignore it, so inside
*
input = new BufferedReader(new FileReader(new File(finaName))); String line = null; while ((line = input.readLine()) != null) { if(line.trim().indexOf('*') == 0) continue; String[] words = line.split(" "); .... }