Update the program.cs

This commit is contained in:
atef 2024-06-20 15:01:43 +02:00
parent 1b0e81b64d
commit 194aacb232
1 changed files with 2 additions and 4 deletions

View File

@ -694,15 +694,13 @@ internal static class Program
//this for concatenating in one file //this for concatenating in one file
if (_counterOfFile == NbrOfFileToConcatenate) if (_counterOfFile >= NbrOfFileToConcatenate)
{ {
_counterOfFile = 0; _counterOfFile = 0;
var logFileConcatenator = new LogFileConcatenator(); var logFileConcatenator = new LogFileConcatenator();
var csvToSend = logFileConcatenator.ConcatenateFiles(NbrOfFileToConcatenate); var csvToSend = logFileConcatenator.ConcatenateFiles(NbrOfFileToConcatenate);
File.WriteAllText("test.csv",csvToSend);
var s3Path = timeStamp.ToUnixTime() + ".csv"; var s3Path = timeStamp.ToUnixTime() + ".csv";
var request = s3Config.CreatePutRequest(s3Path); var request = s3Config.CreatePutRequest(s3Path);