Created
January 9, 2020 15:48
-
-
Save chathurawidanage/eff7a1684212a3fe9486e06ec2b419ab to your computer and use it in GitHub Desktop.
$R test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class Solution { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br1 = new BufferedReader(new FileReader(new File("/home/chathura/Downloads/indy_data/IPBroadcaster_Input_2018-05-16_0.log"))); | |
String line; | |
while ((line = br1.readLine()) != null) { | |
if (line.contains("$R")) { | |
System.out.println(line); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment