From 9cfd6a53c1c1cc121bfaf21f8573e4a4b77af195 Mon Sep 17 00:00:00 2001 From: Nina Dzugasova <dzugasova.nina@gmail.com> Date: Thu, 13 Dec 2018 14:43:51 +0100 Subject: [PATCH] Corrected FileExample. --- src/Examples/FileExample.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Examples/FileExample.cpp b/src/Examples/FileExample.cpp index 18b73ca78c..4d379f4b18 100644 --- a/src/Examples/FileExample.cpp +++ b/src/Examples/FileExample.cpp @@ -7,18 +7,18 @@ using namespace std; int main() { - /*File file; + File file; file.open( String("new-file.tnl"), IOMode::write ); String title("Header"); - file.write( title ); + file.write( &title ); file.close(); file.open( String("new-file.tnl"), IOMode::read ); String title2; - file.read( title2, 4); + file.read( &title2, 4); file.close(); - cout << "title2:" << title2 <<endl;*/ + cout << "title2:" << title2 <<endl; } -- GitLab