in reply to Delay in Writing the data to Text file

You are reading MSMLogs.txt everytime, you read ONE line in br.1. So given 7K lines in that file and 3K line the other that makes 21,000,000 read operations + 3K times opening and closing the file. Of course that is slow.

Put the contents of br.1 into an array and loop over that.


holli

You can lead your users to water, but alas, you cannot drown them.
  • Comment on Re: Delay in Writing the data to Text file