PropWare  3.0.0.224
C++ objects and CMake build system for Parallax Propeller
FileReader_Demo.cpp

Echo a text file to the terminal

cmake_minimum_required(VERSION 3.12)
find_package(PropWare REQUIRED)
project(FileReader_Demo)
create_simple_executable(${PROJECT_NAME} FileReader_Demo.cpp)
int main() {
const SD driver;
FatFS filesystem(driver);
filesystem.mount();
FatFileReader reader(filesystem, "fat_test.txt");
reader.open();
while (!reader.eof())
pwOut << reader.get_char();
return 0;
}