Use a better buffered reader in Pascal