Corrected bug in readmode

The I was triggering a response in processing where data is written in
a file but the file does to exits