I know an inefficient way.
1. Know the file size.
2. Instantiate an HBufC of that size.
3. Now just search it. [Now basically It is a search in the buffer]
But instead if I do not copy the whole file in a buffer, how can I search in a file??
Please help!!
Forum posts: 26
what do mean how does search depend on file size?. Can you elaborate more?.
Forum posts: 28
I know an inefficient way.
1. Know the file size.
2. Instantiate an HBufC of that size.
3. Now just search it. [Now basically It is a search in the buffer]
But instead if I do not copy the whole file in a buffer, how can I search in a file??
Please help!!
Forum posts: 85
You can open a stream for the file and read just as many characters at a time as needed. Check out RFileReadStream.