CODE_EXAMPLES: write data to csv

Simple example how our project could write into the csv file.
Next step would be to write periodically into the file.
The read_file and write_file functions are only for DEBUG purpose.