Browsing index pages (2 articles)
↧
Reading a text file and changing each digit into a value inside an array c#
I'm having a bit of an ordeal with the StreamReader.I'm working on a game where you build the map with a 2D array by imputing different numbers so the array like this: int[,] map = new int[,] {...
View ArticleAnswer by Olivier Jacot-Descombes for Reading a text file and changing each...
With int.Parse(SR.ReadLine()) you are trying to convert the whole input line (consisting of 300 digits) into one single int. This does of course not work.It is easier to read the file into an array of...
View Article
Browsing index pages (2 articles)