Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Opgave7_1
- {
- class Skoliste
- {
- public List<string> Sko1
- {
- get { return Fsko('1'); }
- }
- public List<string> Sko2
- {
- get { return Fsko('2'); }
- }
- public List<string> Sko3
- {
- get { return Fsko('3'); }
- }
- public List<string> Fsko(char t)
- {
- List<string> list = new List<string>();
- string sti = "sko" + t + ".txt";
- string[] lines = System.IO.File.ReadAllLines(sti, Encoding.GetEncoding("iso-8859-1"));
- foreach (string line in lines)
- {
- list.Add(line);
- }
- return list;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement