Created
April 24, 2020 01:40
-
-
Save DongguemYoo/04dd32ecb35c4c4923c7b87d8300c620 to your computer and use it in GitHub Desktop.
fileToDict
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
public FileToDict() | |
{ | |
var lines = File.ReadAllLines("fileName.txt"); | |
var dict = lines.Select(line=>line.Split('=')) | |
.ToDictionary(x=>x[0],x=>x[1]); | |
(왼쪽)=키,(오른쪽)=발류 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment