I know its really simple question, but i cant find answer by myself. I got txt file in this form:
- 0 0 0 0
- 1 16 0 1
- 2 32 0 1
- 3 48 0 1
- b 16 16 0
For now i have:
std::ifstream odczyt2;
odczyt2.open("dodatki/textures.txt");
if (odczyt2.is_open())
{
for (int y = 0; y < 4; y++)
{
for (int x = 0; x < 39; x++)
{
odczyt2 >> textury[x][y];
}
}
}
odczyt2.close();
And i want to make array of chars, which will look exacly the same.