diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 18:35:10 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 18:35:10 -0700 |
commit | c741788a37b2fe8fa6ae2a9249031a7fda97f842 (patch) | |
tree | 6c6e570220c169d0e159f32459636e38ffe5b8bf /tests/hello_world_file.cpp | |
parent | 3f3df289f6068a26fb23c20ccd7de2911ceb3dff (diff) |
various files
Diffstat (limited to 'tests/hello_world_file.cpp')
-rw-r--r-- | tests/hello_world_file.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/hello_world_file.cpp b/tests/hello_world_file.cpp new file mode 100644 index 00000000..71fb953b --- /dev/null +++ b/tests/hello_world_file.cpp @@ -0,0 +1,13 @@ +#include <stdio.h> +int main() { + FILE *file = fopen("tests/hello_world_file.txt", "rb"); + while (!feof(file)) { + char c = fgetc(file); + if (c != EOF) { + putchar(c); + } + } + fclose (file); + return 0; +} + |