private void BtnLeggiVcf_Click(object sender, EventArgs e)
{
try
{
string percorso = @"C:\Downloads\contatti\contatti\NomeContatto.vcf";
using (StreamReader readerFile = new StreamReader(percorso))
{
string riga;
while ((riga = readerFile.ReadLine()) != null)
{
Console.WriteLine(riga);
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Nessun commento:
Posta un commento