public DataReader( revCore.Config revConfig, string imageList ) { _imageList = imageList; var statusDir = Path.GetDirectoryName(imageList); var justFileName = Path.GetFileNameWithoutExtension(imageList); var statusFile = Path.Combine(statusDir, $"{justFileName}.doneStatus.txt"); Console.WriteLine($"using status file {statusFile}"); if (File.Exists(statusFile)) { using (var file = new System.IO.StreamReader(statusFile)) { string line; while ((line = file.ReadLine()) != null) { _doneMap[line] = true; } } } _statusWriter = File.AppendText(statusFile); _rev = new revCore.Rev(revConfig); Console.WriteLine("All initialized"); }
public ExportDoc(revCore.Config revConfig, MyConfig myConfig) { _rev = revConfig; _myconfig = myConfig; }