Skip to content

Instantly share code, notes, and snippets.

@phrohdoh
Created June 29, 2014 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phrohdoh/cf790078f9ce7324b65e to your computer and use it in GitHub Desktop.
Save phrohdoh/cf790078f9ce7324b65e to your computer and use it in GitHub Desktop.
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