how to manage big
string data. if i use the String object i run out of memory.
Through the program i'm trying to search for a given
word in a given file. The logic i've used is read the file as InputStream and covert the bytes read to String. In this string do and indexOf() of the word i'm searching.
This works fine for small files, but if the file is big it runs out of memory. i am using a P3 555 Mhz with 256 mb RAM and it runs out of memory for a 20 mb file.
Any smart way to achieve the goal?
if i've to manipulate huge chunks of String data what is the way out?
Nischal