mirror of
https://github.com/Rhinemann/IoT-Systems.git
synced 2026-03-14 20:50:39 +02:00
feat: open file
This commit is contained in:
parent
c31363aa57
commit
92c20ef612
@ -6,12 +6,17 @@ class FileReader:
|
|||||||
def __init__(
|
def __init__(
|
||||||
self, data_filename: str,
|
self, data_filename: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
self.file_path = data_filename
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def read(self):
|
def read(self):
|
||||||
return [1, 2, 3]
|
return [1, 2, 3]
|
||||||
|
|
||||||
def startReading(self, *args, **kwargs):
|
def startReading(self, *args, **kwargs):
|
||||||
|
self.file = open(self.file_path, newline='')
|
||||||
|
self.file_reader = reader(self.acc_file)
|
||||||
|
file_header = next(self.file_reader)
|
||||||
|
|
||||||
def stopReading(self, *args, **kwargs):
|
def stopReading(self, *args, **kwargs):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user