#if C
#include "FS.h"
#include "SD.h"
#include "SPI.h"
void appendFile(fs::FS &fs, const char *path, const char *message) {
Serial.printf("Appending to file: %s\n", path);
File file = fs.open(path, FILE_APPEND);
if (!file) {
Serial.println("Failed to open file for appending");
return;
}
if (file.print(message)) {
Serial.println("Message appended");
} else {
Serial.println("Append failed");
}
file.close();
}
void save_csv_line(B4R::Object* filename_and_newline_must_be_passed){
appendFile(SD, "/hello.txt", "World!\n");
}
#End If