So I have no trouble saving the position of my player to the text file and it comes out looking something like this:
But now I need to load that back into the game and spawn the player at that position, I know I need to convert each line into a float then assign it to x,y,z of the player but I'm not sure how to read it line by line.
Thats the code being used to read the text file but from there I'm not sure how to read the first line, assign it, read the second line, assign it then read and assign the third line.
Any help would be appreciated.
Golly gosh I need to think more before I post these - I must look like an idiot.
To read and assign the position all I needed to do was this:
That reads each line and converts the string to a float then puts the player in that position.