I can't see that this function does anything other than reading a line from a file. Why not just remove this altogether and use ``CfReadLine``?