C#C
C#3y ago
Dinny

input file error

when reading numbers in my input file, i convert them to integers and assign specific numbers to a variable such as
uint x = Convert.ToUInt32(nextItem[0]);
uint y = Convert.ToUInt32(nextItem[1]);
uint z = Convert.ToUInt32(reader.ReadLine());

but i keep getting an error saying "'Input string was not in a correct format.'" i am unsure how to fix this because the input file is automatically a string, but converting it to an int is causing an error. I normally convert this way and have not had an issue
Was this page helpful?