Hello.
Could someone post a snippet, that would search a txt file for lines which contain part of the typed text?
For example the file is:
mp_101_kfs8
mp_ske_asf
mp_213_p0r
mp_101_kro
101_ksd_34m
mp_ksd_w0q
ksd_213_ras
mp_wk2_ksd

So when user types !search 101, it will show msg him in diferent lines like this:
1. Found mp_101_kfs8 in the file.
2. Found mp_101_kro in the file.
3. Found 101_ksd_34m in the file.

But if there are more than 3 results like, if user types !search ksd, it will show

1. Found 101_ksd_34m in the file.
2. Found mp_ksd_w0q in the file
3. Found ksd_213_ras in the file.
4. There are more than 3 results for "ksd" . Try being more correct.

Hope that you understood what i ment. Thanks.

Last edited by spermis; 04/03/09 03:10 PM.