We have scala objects containing information. In order to make the same functionality as in Plink (writing to text file), those objects needs to be saved to file.
Task :
Write a scala object (Persist) which "saves" (writes to file) complex scala data objects such as ImportRecord. Example method saveToFile.
Scala data classes may need to have some specifics attributes. Implement it.
Example of use :
myRecord (ImportRecord) object needs to be saved.
filename (String) for created file.
Persist.saveToFile(myRecord, filename) create files filename. extensions for each attribute object in myRecord.
We have scala objects containing information. In order to make the same functionality as in Plink (writing to text file), those objects needs to be saved to file.
Task :
Example of use :
PS : All examples are related to our code !