Quote:

that doesnt write properly if mirc codes are available on reading file.. for example:


..if i understood you right the problem might be that your file contains source code and will be evaluated during $read /write process.. ..try the -n switch with $read, should work fine if that s your problem,, like:
Code:
...
write example.txt $read($mircdirtest.txt,n,%i)
...



return is the movement of sense.