import java.io.*;
import java.util.*;
public class ReadFile {
private static final String DELIMITER = “\”(?:\\\\\”|[^\”])*?\”|[\\s.,;:+*/|!=><@?#%&(){}\\-\\^\\[\\]\\&&]+"; public static void main(String [] args){ LinkedList s = new LinkedList(); BufferedReader source; String line; int lineCount = 0; int n = 0 ; String[] cars; try { System.out.println("SOURCE FILE:"+args[0]); source = new BufferedReader(new FileReader(args[0])); line = source.readLine(); while ( line != null) { lineCount++; n++ ; System.out.println(String.format("%04d | %s", lineCount, line)); String[] tokens = line.split(DELIMITER); for (String s1 : tokens) { System.out.println(s1); } line = source.readLine(); } source.close(); } catch ( IOException iox ) { System.out.println("Problem encountered in reading file!" ); } } }