User Tools

Site Tools


read_py_file

This is an old revision of the document!


 ########################################
 Save as readfile_1.py - works and removes blank lines
 ############################################
 import os
 f = open('C:\\temp\\one.txt', "r")
 for line in f:
    print(line.strip())
 f.close()
read_py_file.1525312035.txt.gz · Last modified: 2018/05/02 20:47 by zeppo