SCRUM-98 file reader #13
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user