Hi,
i have a txt files i want to parse and when for example i see "test" i want to get a value test has in the txt file.For example the line is
var text = 2;
i want to see text but i want to assign 2 in a variable.new to java guys.thnx a lot
here's the code reading a fileei think
try { FileInputStream in = new FileInputStream("inputFile.txt"); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while((strLine = br.readLine())!= null) { System.out.println(strLine); } }catch(Exception e){ System.out.println(e); }