GetSize

This function gets the size of a stream.

Syntax

Returns

Returns the current file position.

Example

#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char *argv[])
{
std::string path = "MyFile.dat";

Stream* stream = FileSystem::WriteFile(path);
if (stream==NULL) Debug::Error("Failed to write file.");

stream->WriteLine("Hello");
System::Print("Stream size: "+String(stream->GetSize()));

stream->Release();
return 0;
}