Last active
July 28, 2020 11:07
-
-
Save cinkagan/451439221073a1ada38c17565ddd5433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance); // Türkçe karakter sorunu yaşamamak için gerekli | |
using (var stream = new StreamReader(file.OpenReadStream())) | |
{ | |
using (var reader = ExcelReaderFactory.CreateReader(stream.BaseStream)) | |
{ | |
while (reader.Read()) | |
{ | |
// İşlemler | |
var deger=reader.GetValue(1).ToString(); // 1 sayısını verisini almak istediğiniz kolon numarası ile değiştirin | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment