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
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace MacTranslocator { | |
class TranslocateHandler { | |
/// <summary> | |
/// This is the name of the game, the name of the folder in local storage where the game will be run from, |
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
using System; | |
using System.IO; | |
namespace UMNCommonData.IO { | |
public class CsvReader { | |
public static CsvReader Open(string path, int fieldsRow, int firstDataRow, char separator) { | |
string[] lines = File.ReadAllLines(path); | |
string[] fields = lines[fieldsRow].Split(separator); | |
return new CsvReader(lines, fieldsRow, firstDataRow, separator); | |
} |