file reading
This commit is contained in:
parent
6acaabd73a
commit
59aac2d597
13
hello.cc
13
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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user