My text file have 220 663 lines and 858 995 characters (I used Linux commands : \wc to count them. If I use array to store data, I think it's too large array.
But if use fstream, I dont know to access each element in stream to compare and replace. I dont know How many labels such as: A1, C- A1, AM- MNR... which I have to replace.
hmm..you can try posting what you've got so far(just the fil. But I guess you can try looking at fstream(see reference: http://www.cplusplus.com/reference/ ) yourself. BTW, you can actually use yourstream.peek() to see if what value would be coming next. :)