package txtParser;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Stream;

public class TxtParser {

	public void readStream() {
		Path path = Paths.get("c:/temp", "data.txt");

		try (Stream<String> lines = Files.lines(path)) {
			
		//delimit lines, parse into creatObject
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

@@ -124,16 +124,80 @@
 .Paths;%0A
+import java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0A
 import j
@@ -247,17 +247,18 @@
 rser %7B%0A%0A
-%09
+  
 public v
@@ -276,18 +276,20 @@
 eam() %7B%0A
-%09%09
+    
 Path pat
@@ -327,18 +327,20 @@
 txt%22);%0A%0A
-%09%09
+    
 try (Str
@@ -384,60 +384,366 @@
 ) %7B%0A
-%09%09%09%0A%09%09//delimit lines, parse into creatObject%0A%09%09%09%0A%09%09
+      String str = path.toString();%0A      String%5B%5D strs = str.split(%22%5C%5C%7C+%22);%0A      for (String s : strs) %7B%0A        System.out.println(%22Split..: %22 + s);%0A      %7D%0A%0A      Pattern pattern = Pattern.compile(%22%5B%5E%7C%5D+%22);%0A      Matcher matcher = pattern.matcher(str);%0A      while (matcher.find()) %7B%0A        System.out.println(%22Pattern:%22 + matcher.group());%0A      %7D%0A    
 %7D ca
@@ -768,11 +768,14 @@
 ) %7B%0A
-%09%09%09
+      
 e.pr
@@ -795,13 +795,16 @@
 ();%0A
-%09%09%7D%0A%09
+    %7D%0A  
 %7D%0A%7D%0A

refactor code started