Esempio n. 1
0
 public SrmDocument ReadAnnotationsFromFile(CancellationToken cancellationToken, string filename)
 {
     DataSchema.BeginBatchModifyDocument();
     using (var streamReader = new StreamReader(filename))
     {
         var dsvReader = new DsvFileReader(streamReader, TextUtil.SEPARATOR_CSV);
         ReadAllAnnotations(cancellationToken, dsvReader);
     }
     DataSchema.CommitBatchModifyDocument(string.Empty, null);
     return(DataSchema.Document);
 }