the problem is you are opening the file in read only mode and when adder program opens it in read write mode it locks the file.
You only have two options.
1- greedy way open the file in read write mode locking it only for your program.
2- (only if the file is not to big) read the complete file to a memory stream and processing it from there.