Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface SDFileSystem mbed-rtos mbed
file_manager.hpp
- Committer:
- micbio
- Date:
- 2016-12-05
- Revision:
- 2:e699312248f3
- Parent:
- 1:58d2021e301d
File content as of revision 2:e699312248f3:
#include "mbed.h" #include <string> class file_manager { private: FILE *fp; char * current_path; char * path_sisk; char * path_agh; char * path_krk; void print_files(void); void get_string(void); bool open_file(char option); bool close_file(void); public: file_manager(void) : path_sisk("/sisk.txt"), path_agh("/agh.txt"), path_krk("/krakow.txt"), current_path("/sisk.txt") { fp = NULL; } void get_path(void); void set_path(void); void write_to_file(void); void append_to_file(void); void read_file(void); };