Skip to main content
gamedev.net
🔒 Locked

efficiently processing large text?

Started by Eric_B Jul 24, 2002 at 4:58 AM 3 replies 200+ views
Original Post
Eric_B
Eric_B
Can anyone point me in right direction on how to quickly process large text files like above 1mb+ thanx in advance
Dreamforger
Dreamforger
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
I may be getting older, but I refuse to grow up
mrhollow
mrhollow
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 |

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.