Titi Asrat / Mbed 2 deprecated sd_duplicator

Dependencies:   SDFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
tmasrat
Date:
Tue Nov 15 13:04:32 2016 +0000
Commit message:
Cybersecurity project

Changed in this revision

SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r b453be3137c7 SDFileSystem.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystem.lib	Tue Nov 15 13:04:32 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/SDFileSystem/#8db0d3b02cec
diff -r 000000000000 -r b453be3137c7 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Nov 15 13:04:32 2016 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+ 
+SDFileSystem original(p5, p6, p7, p22, "original");
+SDFileSystem duplicate(p11, p12, p13, p21, "duplicate");
+
+DigitalOut myled(LED1);
+
+int main() {
+    printf("Hello World!\n");
+    
+    FILE *fp = fopen("/original/fun.txt", "r");
+    if(fp == NULL) {
+        error("Could not open file for read.\n");
+    }
+    int c;
+    while((c = fgetc(fp)) != EOF){
+        putchar(c);
+    }
+    fclose(fp); 
+ 
+    printf("Goodbye World!\n");
+    
+}
diff -r 000000000000 -r b453be3137c7 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Nov 15 13:04:32 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0
\ No newline at end of file