Merging multiple CSV files to one file | C# Tutorial

preview_player
Показать описание
Merging multiple CSV files to one file | C# Tutorial

Prereqisite:
Create two or more csv files with data

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace MergeTwoFiles
{
internal class Program
{
static void Main(string[] args)
{
string path = @"C:\Users\AZHAR PC\Desktop\edited\";
string[] csvfiles = Directory.GetFiles(path, "*.csv", SearchOption.TopDirectoryOnly);
{
foreach(var csv in csvfiles)
{
using(var csvData = File.OpenRead(csv))
{
csvData.CopyTo(csvOutput);
}
}
}
}
}
}

Chapters:
0:00 - Introduction to the video
0:28 - Program for Merging multiple CSV files to one file
5:31 - End Tags and subscription to the channel

My second Channel:

Follow Insta:

One Card App Link to Apply:

Cred App Link to Apply:

Next Steps :

---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists

---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------

#csharp
#csv
#csharpdotnet
Рекомендации по теме
Комментарии
Автор

thank you that`s what i`m looking for ... can you use coding as utf-8 in your code

anassportal