I tried the following on the command prompt:
telnet -f abc.txt port.

Surprisingly, abc.txt was modified (seeing from the timestamp), but nothing was written into it.

Should I enable logging from somewhere. I tried 'set logging on' but I got an error, 'Environment variable logging not defined'.