#include <SD.h> File myFile; void setup() { Serial.begin(9600); Serial.print("Initializing SD card..."); pinMode(10,OUTPUT); if(!SD.begin(4)) { Serial.println("initialization failed!"); return; } Serial.println("initialization done."); myFile = SD.open("login.txt"); if(myFile) { Serial.println("login.txt: "); while(myFile.available()) { Serial.write(myFile.read()); } myFile.close(); } else { Serial.println("error opening test.txt"); } } void loop() { }
'\n'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)