Code: Select all
File f = FileOpen("3dplJSlib.js", read);
if(f)
{
uint64 maxSize = f.GetSize();
//byte * buffer = new byte[maxSize + 1];
char * buffer = new byte[maxSize + 1];
f.Read(buffer, 1, maxSize);
buffer[maxSize] = 0;
puts(buffer);
delete f;
}