 #include <SD.h> // Modified SD.cpp in SD library to allow for multiple SD.begin() calls
 // Add to Line 343 of SD.cpp: 'if (root.isOpen()) {root.close();}'
 
+#include <ThermistorSensor.h>
+
+// Thermistor Setup
+// which analog pins to connect
+#define THERMISTOR_PIN_A A0
+#define THERMISTOR_PIN_B A1
+
+// Thermistor objects and temperature variables
+ThermistorSensor thermistorA(THERMISTOR_PIN_A);
+ThermistorSensor thermistorB(THERMISTOR_PIN_B);
+
+#define FILENAME "mtest.txt"
 File myFile;
-void readFileToSerial()
+
+void readFileToSerial(char* filename)
 {
   // re-open the file for reading:
-  myFile = SD.open("mtest.txt");
+  myFile = SD.open(filename);
   if (myFile) {
-    Serial.println("mtest.txt:");
+    Serial.print("Reading ");
+    Serial.print(filename);
+    Serial.println(":");
     
     // read from the file until there's nothing else in it:
     while (myFile.available()) {

    myFile.println(value);
    myFile.close();
    
    // Update counter
    counter++;
    
    Serial.println("done.");
  } else {
    // if the file didn't open, print an error:


boolean startSD()
{
  Serial.print("Initializing SD card...");
  // On the Ethernet Shield, CS is pin 4. It's set as an output by default.
  // Note that even if it's not used as the CS pin, the hardware SS pin 
  // (10 on most Arduino boards, 53 on the Mega) must be left as an output 
  // or the SD library functions will not work. 
  pinMode(10, OUTPUT);

  if (!SD.begin(4)) {
    Serial.println("initialization failed!");
    return false;
