summaryrefslogtreecommitdiff
path: root/hello.cc
diff options
context:
space:
mode:
authorevgeny <me@ch1p.com>2018-10-02 02:09:13 +0300
committerevgeny <me@ch1p.com>2018-10-02 02:09:13 +0300
commit59aac2d597aed7dc247476eb27771bb5900ab2b5 (patch)
tree80fc00d046133ab05e243e4a690df2c36f539ce4 /hello.cc
parent6acaabd73a73c7d0b69666d1041f7c50f8f3052c (diff)
file readingHEADmaster
Diffstat (limited to 'hello.cc')
-rw-r--r--hello.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/hello.cc b/hello.cc
index db34a59..f64c258 100644
--- a/hello.cc
+++ b/hello.cc
@@ -21,6 +21,8 @@
#include <assert.h>
#include <stdint.h>
+#include <fstream>
+#include <iostream>
#include <stdio.h>
namespace {
@@ -54,7 +56,16 @@ DemoInstance::DemoInstance(PP_Instance instance)
: pp::Instance(instance),
pp::Graphics3DClient(this),
callback_factory_(this),
- context_(NULL) {}
+ context_(NULL) {
+
+ // test file opening
+ std::cout << "file reading test...\n";
+
+ std::ifstream infile("/Users/evgeny/test.txt");
+ for (std::string line; getline(infile, line); ) {
+ std::cout << line << std::endl;
+ }
+}
DemoInstance::~DemoInstance() {
assert(glTerminatePPAPI());