# File lib/native_file_types/ti99/Ti99TextFile.rb, line 14
def to_text
  s=""
  i=0
  while i<contents.length do
    record_length=contents[i]
    i+=1
    if record_length==0xff then
      while ((i<contents.length) && (i%256!=0)) do
        i+=1 
      end
    else
      s+=contents[i,record_length]
      s+="\n"
      i+=record_length
    end    
  end
  s
end