aboutsummaryrefslogtreecommitdiff
path: root/tests/hello_world_file.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-15 18:35:10 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-15 18:35:10 -0700
commitc741788a37b2fe8fa6ae2a9249031a7fda97f842 (patch)
tree6c6e570220c169d0e159f32459636e38ffe5b8bf /tests/hello_world_file.cpp
parent3f3df289f6068a26fb23c20ccd7de2911ceb3dff (diff)
various files
Diffstat (limited to 'tests/hello_world_file.cpp')
-rw-r--r--tests/hello_world_file.cpp13
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;
+}
+