Parses first 'limit' lines of input and writes to a temp file. Baby steps...