Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public void LoadTilesFromFile(string filename)
{
var fullText = File.ReadAllLines(filename);
var output = new int[fullText.Length][];
foreach (var fullLine in fullText)
{
var lineAsIntArray = fullLine.ToIntArray(',');
for (var intIndex = 0; intIndex < lineAsIntArray.Length; intIndex++)
{
Console.WriteLine(lineAsIntArray[intIndex]);
for (var nextLine = 0; nextLine < fullLine.Length; nextLine++)
{
// wat do
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment