Jump to content
  • Advertisement


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


Searching a char in a data file

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

Hi me again need help I create a textfile.txt and save data in it A // this should tell me where i am in that file 10001001 // and this is my data 22222111 12222222 12212121 12000001 01111111 12222212 11000022 B ...... and so on ......... So please if any of you gurus knows how ,then please tell me how i can get the data of my char[] // searching in my file for the data i need! Thanks NO

Share this post

Link to post
Share on other sites
Sure you can, with a simple while(),
just read a char, check if it''s within
the range of you tags (A-Z for example),
check if it''s the right one, and if it is,
read until you find another tag.
I guess I would store the length of the
data in each chunk aswell, would make the
loop easier to read


MFC is sorta like the swedish police... It''''s full of crap, and nothing can communicate with anything else.

Share this post

Link to post
Share on other sites
Could i also count the size of my imput
and then i count the whole size of my file and then
i divide the size of my file throug the imput data ?
then i would know how many entrys i have
right ?
or wrong ?
questions i have so many of them
thanks for your time

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!