Skip to content

Instantly share code, notes, and snippets.

@chathurawidanage
Created January 9, 2020 15:48
Show Gist options
  • Save chathurawidanage/eff7a1684212a3fe9486e06ec2b419ab to your computer and use it in GitHub Desktop.
Save chathurawidanage/eff7a1684212a3fe9486e06ec2b419ab to your computer and use it in GitHub Desktop.
$R test
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