// #include <SD.h>
// const int SD_CS_PIN = 9;
// File myFile;
// void setup() {
// // put your setup code here, to run once:
// Serial.begin(9600);
// SD.begin(SD_CS_PIN);
// myFile = SD.open("GPS.txt",FILE_WRITE);
// myFile.println("first");
// myFile.println("Second");
// myFile.close();
// myFile = SD.open("GPS.txt", FILE_READ);
// while (myFile.available()) {
// char ch = myFile.read(); // read characters one by one from Micro SD Card
// Serial.print(ch); // print the character to Serial Monitor
// }
// myFile.close();
// }
// void loop() {
// // put your main code here, to run repeatedly:
// }
#include <SD.h>
const int sd_pin = 9;
File myFile;
void setup(){
Serial.begin(9600);
SD.begin(sd_pin);
myFile = SD.open("model.txt",FILE_WRITE);
myFile.println("sup");
myFile.println("homie");
myFile.close();
myFile = SD.open("model.txt",FILE_READ);
while(myFile.available()){
char key = myFile.read();
Serial.print(key);
}
myFile.close();
}
void loop(){
}