Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Parsing strings..

This topic is 6017 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello... I am having trouble parsing a string that I am reading from a textfile. I am using fgets to get the string, and I then try to parse it. However my data structure is not getting the correct info. Does anyone have a simple way to parse strings of different data types from a file other than by doing pointer arithmatic (or something similar). I am using the file to load lables for a globe appilcation that I am developing for work. Thanks! John William Blair
"The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of the darkness. For he is truly his brother''s keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee."

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!