Jump to content
  • Advertisement

Archived

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

CJ

fscanf

This topic is 5448 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

fscanf doesn't really have that kind of functionality built in. You could probably read raw data with it, and then parse out the newlines, but that seems like a lot of unnecessary work when there are other functions that already do what you what. Have a look at fgets.

Share this post


Link to post
Share on other sites
Advertisement
I did it with fgetc() already.....thanx anyway.

Now this thingy is up and running, things should go faster =)

------------------
Dance with me......

Share this post


Link to post
Share on other sites
Hiya, I'm using fscanf to read from a file, but.....I also need to know when a new line starts. So....I should be able to find the '\n' character. but I can't find a way to do this with fscanf. Is there a way to acomplish this by ONLY using fscanf??

------------------
Dance with me......

Share this post


Link to post
Share on other sites

This topic is 5448 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.

Guest
This topic is now closed to further replies.

  • 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!