Notice that the file and path name in matty's code has double slashes, it is mandatory:
js code:
Messenger.MyPersonalMessage = ReadFile('c:\\test.log');
So change
code:
ReadFile('C:\Users\Myname\Desktop\test.log');
to
js code:
ReadFile('C:\\Users\\Myname\\Desktop\\test.log');