Jan-01-2019, 12:41 PM
(Jan-01-2019, 06:55 AM)janho Wrote:(Jan-01-2019, 04:58 AM)janho Wrote: How can I upload sample notepad file which is having structure of output report in a text format.this report has line no. column so that after uploading t on this forum you will be able to understand what exactly i mean from wrong line no.and if you focus on pasted code from line no. 70 to 85 that tries to write line no. in text file report but expectation is that for particular word let's say 'log' when it finds it in some place in disk drive d: in some folder and in some file and when we open this file in notepad++ then the corresponding line number for this searched keyword 'log' must be exactly same which should be written in our text format report using this python script which is pasted here for your reference.
If required can upload text file report which is having incorrect line number for the found keyword in particular file,but i am not sure how to upload that sample report(in text format) here on this forum.
Thanks
Hi, I was able to upload sample report in zip file format in other thread on this forum since I was not getting any option to upload it here, so please refer my another link for the same question here it is:-https://python-forum.io/Thread-keyword-matching-part2