From 59aac2d597aed7dc247476eb27771bb5900ab2b5 Mon Sep 17 00:00:00 2001 From: evgeny Date: Tue, 2 Oct 2018 02:09:13 +0300 Subject: file reading --- hello.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'hello.cc') diff --git a/hello.cc b/hello.cc index db34a59..f64c258 100644 --- a/hello.cc +++ b/hello.cc @@ -21,6 +21,8 @@ #include #include +#include +#include #include 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()); -- cgit v1.2.3