Yes, but mIRC requires the file to be at least 1024bytes (1K)...why? And why do I get -1 (nothing is written) ?

Perhaps expert scripters will tell me how to solve this?

To tell the truth, I have never used mapped files (and sincerely, mIRC should better use shared memory buffers in my opinion... wink