You should be able to use the ReadLineEx() UDF for that.