public static void main(String arr[]) { ParseQuery pq = new ParseQuery(); // DBSystem.readConfig("/tmp/config.txt"); String configFilePath = arr[0]; DBSystem.readConfig(configFilePath); // String query = "Select distinct * from countries where id=123 and code like 'jkl' group by // continent having code like 'antartic' order by name"; String inputFile = arr[1]; try { BufferedReader br = new BufferedReader(new FileReader(inputFile)); String line; while ((line = br.readLine()) != null) { pq.queryType(line); } } catch (FileNotFoundException e) { System.out.println("Input file not found"); // e.printStackTrace(); } catch (IOException e) { System.out.println("I/O Exception"); // e.printStackTrace(); } // /String query = "create table rtyui(name varchar, age int, rollno int)"; }