Created
This commit is contained in:
39
process/Program.cs
Normal file
39
process/Program.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace process
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var input = File.ReadAllLines("C:\\Users\\tecel\\AppData\\Roaming\\Salty\\Salty.csv");
|
||||
|
||||
var count = new Dictionary<string, int>();
|
||||
|
||||
foreach (var line in input)
|
||||
{
|
||||
var t = line.Split("\",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
|
||||
if(t.Count > 3 && t[1] == "NATIVE")
|
||||
{
|
||||
if(!count.ContainsKey(t[3]))
|
||||
{
|
||||
count[t[3]] = 1;
|
||||
}
|
||||
count[t[3]]++;
|
||||
}
|
||||
}
|
||||
var output = new List<string>();
|
||||
|
||||
foreach (var key in count.Keys)
|
||||
{
|
||||
output.Add(key + "," + count[key].ToString());
|
||||
}
|
||||
File.WriteAllLines("C:\\Users\\tecel\\AppData\\Roaming\\Salty\\Salty_processed.csv", output);
|
||||
}
|
||||
}
|
||||
}
|
15
process/process.csproj
Normal file
15
process/process.csproj
Normal file
@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup Label="Globals">
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user