-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathProgram.cs
37 lines (33 loc) · 1.05 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using static System.IO.Path;
namespace SL3Reader
{
public static class Program
{
public static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine(@"Usage example: SL3Reader.exe C:\input.sl3 D:\output.csv");
return;
}
string input = GetFullPath(args[0]);
if(!Exists(input))
{
Console.WriteLine("Input file not found!");
return;
}
string output = GetFullPath(args[1]);
if (!Exists(GetDirectoryName(output)))
{
Console.WriteLine("Directory not found for the output file!");
return;
}
using SL3Reader sl3reader = new(input);
// sl3reader.ExamineUnknown8Datasets();
sl3reader.Export3D(output);
//sl3reader.ExportSideScans(@"F:\SS\");
//sl3reader.ExportToCSV(output, true);
}
}
}