title: pySerial cuts off text in file
body: <p>I'm trying to print out the content of a file on my Android through the serial port and it just cut off half of it.</p>
  
  <p>My code look like this:</p>
  
  <pre><code>ser = Serial('/dev/ttyUSB0', 115200, timeout=0)
  ser.write(' cat /sdcard/dump.xml \r\n')
  sleep(5)
  while ser.inWaiting():
      print ser.readline()
  ser.close()
  </code></pre>
  
  <p>Cat works without any problems inside my serial port terminal so must be some setting with the Serial class. Does it have some maxlimit? I have tried to play around a bit with it's variables but can't seem to find anything that work.</p>