Jump to content
  • Advertisement

Archived

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

Eric_B

efficiently processing large text?

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

Can anyone point me in right direction on how to quickly process large text files like above 1mb+ thanx in advance

Share this post


Link to post
Share on other sites
Advertisement
What do you mean by processing? This is an honest question

Sort the words? Parse the file, like a browser would parse a html file? Efficient reading or lines? Search for text in text?

---------------------------
I may be getting older, but I refuse to grow up

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
It''s a text parser, like a browser would parse an html file.

Share this post


Link to post
Share on other sites
That all depends upon which language you want to use, and what you mean by quickly.

If by quickly you mean quickly write code that parses text, then the best way to go is using regular expressions (a search on google should turn up plenty of results, and O''Reilly publishes a great book on them called "Mastering Regular Expressions"), and a language that is setup for handling text.
Perl would be my fist preference for handling text, but there are plenty of alternatives. There are even some regular expression libraries for C and C++ for free download.

-- Aaron

| HollowWorks.com | Rhott.com |

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!