The program will open a file called test.txt in the root of the SD card, and will create one if it does not exist. It will then write "one two three four five" in the .txt file. It will then read the text and output the result. You will need a terminal application (I recommend PuTTy) in order to see the outputs. The current program overwrites anything that was previous on the SD card. To prevent this, change the "w" to "a" during the writing process. This changes the instruction from a 'write' to an 'append'.

Dependencies:   SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by mbed official

Committer:
bentrevett
Date:
Thu Jul 24 12:55:11 2014 +0000
Revision:
1:2cf8f0893afd
Parent:
0:bdbd3d6fc5d5
Reading and Writing to SD Card;  ; Description:;  ; A small project made with mbed (mbed.org) on the FRDM-KL64 using the SD card capabilities.; The program will open a file called test.txt in the root of the SD card, and will create one if it does not exi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bentrevett 1:2cf8f0893afd 1 http://mbed.org/users/mbed_official/code/SDFileSystem/#7b35d1709458