Ogniok
Member
|
[EE 2.0] Reading empty file
I've started playing around with Esenthel 2.0 and I noticed a strange behavior.
I wanted to open an empty file with this code:
Code:
File f;
f.read("file.txt");
but I got runtime error "Can't open 'file.txt'". Although, if I save any data in it, then there is no error.
Is this a normal behaviour? (It works in Esenthel 1.0)
(This post was last modified: 03-05-2014 06:30 PM by Ogniok.)
|
|
03-05-2014 06:29 PM |
|
Esenthel
Administrator
|
RE: [EE 2.0] Reading empty file
http://www.esenthel.com/?id=doc#API/File/File
Code:
File& read (C Str &name , Secure *secure=NULL); // read Pak or stdio file, Exit on fail, 'secure' must point to object in constant memory address (only pointer is stored through which the object can be later accessed)
Bool readTry (C Str &name , Secure *secure=NULL); // try to read Pak or stdio file, false on fail, 'secure' must point to object in constant memory address (only pointer is stored through which the object can be later accessed)
|
|
03-05-2014 11:03 PM |
|