Update criteria for partial/full IPv6 support.
[tor-metrics-tasks.git] / task-3574 / OneLinePerDescriptor.java
blob78c83b11aa1d7d69d54ffd8ed4bdebfea18b63f3
1 import java.io.*;
2 public class OneLinePerDescriptor {
3 public static void main(String[] args) throws Exception {
4 BufferedReader br = new BufferedReader(new FileReader(
5 "bridge-bandwidth-histories-raw.txt"));
6 String line;
7 BufferedWriter bw = new BufferedWriter(new FileWriter(
8 "bridge-bandwidth-histories-by-fingerprint.txt"));
9 while ((line = br.readLine()) != null) {
10 if (line.startsWith("extra-info ")) {
11 bw.write("\n" + line);
12 } else {
13 bw.write(" " + line);
16 bw.close();
17 br.close();