class DataTest(object): def testReadData(self): path = '/home/pi/Desktop/test.txt' with open(path, 'r') as f: return f.read()
data = DataTest() file = data.testReadData()
reading data from a file
|
|
Messages In This Thread |
reading data from a file - by iFunKtion - Mar-27-2017, 04:20 PM
RE: reading data from a file - by nilamo - Mar-27-2017, 04:30 PM
RE: reading data from a file - by wavic - Mar-27-2017, 04:55 PM
RE: reading data from a file - by iFunKtion - Mar-28-2017, 07:25 AM
|