I suspect the problem is the backslashes. Try it with forward slashes instead (ie try "D:/StronyKlientow/cematsil.bptnet.pl/main/Alicja/perl/counter.txt"). The error message is correct - the backslashes are being interpolated and messing up your filename/path.
rdfield