Created
November 6, 2016 09:23
-
-
Save ovidijusr/6c78cd30edcff7affda523d95183e524 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| static void readFile(string fileName, bool showOutput, out string[][] fileData) | |
| { | |
| string line; | |
| string[] tempData; | |
| fileData = null; | |
| int n = 0; | |
| if (File.Exists(fileName)) { | |
| tempData = File.ReadAllLines(fileName, Encoding.GetEncoding("utf-8")); | |
| foreach(string fileDataElement in tempData) | |
| { | |
| fileData[n] = fileDataElement.Split(','); | |
| } | |
| Console.WriteLine("> readFile sekmingai nuskaite faila"); | |
| } | |
| else | |
| { | |
| Console.WriteLine("> readFile nerado failo"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment