18 using System.Collections.Generic;
22 using TraceLab.Components.Types.Preprocessors.ExecutionTraces;
24 namespace TraceLab.Components.DevelopmentKit.IO
38 TextWriter file =
new StreamWriter(filename);
39 foreach (
BiGram bigram
in bigrams)
41 file.WriteLine(
"{0}\t{1}", bigram.
Caller, bigram.
Callee);
54 TextReader file =
new StreamReader(filename);
58 while ((line = file.ReadLine()) != null)
61 if (String.IsNullOrWhiteSpace(line))
63 string caller, callee;
66 string[] split = line.Split(
'\t');
70 catch (IndexOutOfRangeException e)
74 bigrams.Add(
new BiGram(caller, callee));