PYTHON 44
QGIS CSV Just Read - no write By mike on 28th March 2021 03:43:43 PM
  1. import os
  2. filepath = "Z:/10030530 Borssele III&IV_SBP/21 NHP/21 Survey Online/01 [100XXXXX - Online Project]/LogFiles/BLACKBOX Borssele III IV SBP.txt"
  3. with open(filepath, 'rb') as f:
  4.     f.seek(-2, os.SEEK_END)
  5.     while f.read(1) != b'\n':
  6.         f.seek(-2, os.SEEK_CUR)
  7.     print(f.readline().decode())

Hasta la pasta! is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.