Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //перенос содержимого файла в массив строк
- public static string[] StringsFromFile(string path)
- {
- List<string> AllLinesList = new List<string>();
- using (StreamReader sr = File.OpenText(path))
- {
- string newline;
- while ((newline = sr.ReadLine()) != null)
- AllLinesList.Add(newline);
- }
- string[] AllLines = AllLinesList.ToArray();
- return AllLines;
- }
- public static string Poly(string[] arr)
- {
- return arr[0];
- }
- public static string Equals(string[] arr)
- {
- string all = "";
- for (int i = 1; i < arr.Length; i++)
- {
- all += arr[i];
- all += "\r";
- }
- return all;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement