Reproduces the behavior of the mel command of the same name. if writing pymel scripts from scratch, you should use a more pythonic construct for looping through files:
>>> f = open('myfile.txt')
... for line in f:
... print line
This command is provided for python scripts generated by mel2py