PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
Examples
PropWare_FileReader
FileReader_Demo.cpp
Go to the documentation of this file.
1
26
#include <
PropWare/PropWare.h
>
27
#include <
PropWare/printer/printer.h
>
28
#include <
PropWare/filesystem/sd.h
>
29
#include <
PropWare/filesystem/fat/fatfs.h
>
30
#include <
PropWare/filesystem/fat/fatfilereader.h
>
31
32
using namespace
PropWare
;
33
41
int
main
() {
42
const
SD
driver;
43
FatFS
filesystem(&driver);
44
filesystem.mount();
45
46
FatFileReader
reader(filesystem,
"fat_test.txt"
);
47
reader.open();
48
49
while
(!reader.eof())
50
pwOut
<< reader.get_char();
51
52
return
0;
53
}
fatfs.h
PropWare
Generic definitions and functions for the Parallax Propeller.
Definition:
comparator.h:32
fatfilereader.h
pwOut
const PropWare::Printer pwOut
Most common use of printing in PropWare applications (not thread safe; see PropWare::pwSyncOut for mu...
PropWare::FatFS
Definition:
fatfs.h:42
main
int main(void)
Definition:
GraphicsTest.c:20
PropWare.h
PropWare::SD
A simple SD driver communicating over the SPI protocol.
Definition:
sd.h:56
sd.h
printer.h
PropWare::FatFileReader
Read a file on a FAT 16 or FAT 32 storage device.
Definition:
fatfilereader.h:77
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12