For an assignment at school I have to make the game rogue. The way we load the rooms is from a file that looks like this:
10x12 de4 ds6 p9,8 g7,5 h1,1 M8,9
24x12 ds5 ds6 p9,8 g7,5 h1,1 M8,9
9x16 ds3 ds6 p9,8 g7,5 h1,1 M8,9
18x17 dn9 ds6 p9,8 g7,5 h1,1 M8,9
5x5 de4 ds6 p9,8 g7,5 h1,1 M8,9
16x11 dw7 ds6 p9,8 g7,5 h1,1 M8,9
Each room has a size to start then all the elements and their locations after it, separated by a space. When I read it in, I was unable to get each line (10x12 de4 ds6 p9,8 g7,5 h1,1 M8,9), I only got one element at a time (10x12 then de4 then ds6 and so on). Is there a way to read up until the end of the line and save that in a
char ** rooms
variable?