Michał Biolik / Mbed 2 deprecated SD_TUT

Dependencies:   EthernetInterface SDFileSystem mbed-rtos mbed

Revision:
2:e699312248f3
Parent:
1:58d2021e301d
--- a/file_manager.hpp	Mon Dec 05 01:07:30 2016 +0000
+++ b/file_manager.hpp	Mon Dec 05 22:46:14 2016 +0000
@@ -5,10 +5,10 @@
 {
 private:
     FILE *fp;
-    string current_path;
-    string path_sisk;
-    string path_agh;
-    string path_krk;
+    char * current_path;
+    char * path_sisk;
+    char * path_agh;
+    char * path_krk;
 
     void print_files(void);
     void get_string(void);
@@ -16,11 +16,12 @@
     bool close_file(void);
 public:
     file_manager(void) :
-        current_path(this->path_sisk)
+        path_sisk("/sisk.txt"), 
+        path_agh("/agh.txt"), 
+        path_krk("/krakow.txt"),
+        current_path("/sisk.txt")
     {
-        path_sisk = "/sisk.txt";
-        path_agh = "/agh.txt";
-        path_krk = "/krakow.txt";    
+        fp = NULL;
     }
 
     void get_path(void);