MCPcopy Create free account
hub / github.com/anjo76/angelscript / ReadString

Method ReadString

sdk/add_on/scriptfile/scriptfile.cpp:384–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384string CScriptFile::ReadString(unsigned int length)
385{
386 if( file == 0 )
387 return "";
388
389 // Read the string
390 string str;
391 str.resize(length);
392 int size = (int)fread(&str[0], 1, length, file);
393 str.resize(size);
394
395 return str;
396}
397
398string CScriptFile::ReadLine()
399{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected