A
ArunPrakash
Hi,
I have a web application that looks for a particular string in a set
of huge files( the files grow into MBs - max i have seen is 30 MB ). (
search using reg expressions ). the string can occur multiple times in
a file. whenver the string is found in a line, the whole line must be
printed in the output. What i am doing is,
1. traversing each file in the directory
2. In each file, read line by line
3. Match the regular expression. If the search string is there, add
the line to a datatable( which will be used for display )
The problems am facing with this approach is the operation takes tooo
long due to the size of the files and number of files to search too.
The limitations are.
1. I cannot read the entire file into a string and then do the search
because of the size of the files.
2. Network - The files are scattered over a LAN.
3. I could not find a way to use BufferedStream or something like that
( what if the searched string itself is split accross different
chunks? )
can anyone help me with this.
Thanks & Regards,
Arun Prakash. B
I have a web application that looks for a particular string in a set
of huge files( the files grow into MBs - max i have seen is 30 MB ). (
search using reg expressions ). the string can occur multiple times in
a file. whenver the string is found in a line, the whole line must be
printed in the output. What i am doing is,
1. traversing each file in the directory
2. In each file, read line by line
3. Match the regular expression. If the search string is there, add
the line to a datatable( which will be used for display )
The problems am facing with this approach is the operation takes tooo
long due to the size of the files and number of files to search too.
The limitations are.
1. I cannot read the entire file into a string and then do the search
because of the size of the files.
2. Network - The files are scattered over a LAN.
3. I could not find a way to use BufferedStream or something like that
( what if the searched string itself is split accross different
chunks? )
can anyone help me with this.
Thanks & Regards,
Arun Prakash. B