I currently have a map file in a txt format. such as the below code
I need a way to separate them out without using fscanf().
For example the way my map format works is the space is the delimiting character and then the first number on the left hand side of the colon is the TileID and then the number the other side is TileType.
I have tried to use getline() but it doesn't allow the same functionalty as fscanf(); Such as the code below
| Code: |
| 1:0 0:0 0:0 1:0 |
I need a way to separate them out without using fscanf().
For example the way my map format works is the space is the delimiting character and then the first number on the left hand side of the colon is the TileID and then the number the other side is TileType.
I have tried to use getline() but it doesn't allow the same functionalty as fscanf(); Such as the code below
| Code: |
| fscanf(FileHandle, "%d:%d ", &tempTile.TileID, &tempTile.TypeID); |
