Hey there! I just want some hints for some program I'm trying to make.

Say we have a 1GB file full of 0 and 1. What I want to do is to find the patterns of them and rank them. It wouldn't seem so complex if I had to deal with an array. But now? I can't load such a file (or bigger in some cases) inside the memory. Well, I'll make do in case, but I'm asking for some possible other way. I know a little about I/O but I've managed nothing.

I'm just asking for some general hints about pattern finding in the file guys. Thanks for ANY help! ;)

Recommended Answers

All 2 Replies

If the file is massive, why not load it inside memory in chucks, then find the patterns?

@phorce
You mean chunks I suppose ?

You may find what is required here STXXL.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.