# ReadString2

## Description

Reads a string from the given file, which must have been opened for reading. Note that this can only read strings in binary form such as those written using WriteString2, if you are trying to read strings separated by new lines then use ReadLine instead. If you use this command in tier 2 you must delete the returned string when you are finished with it. This uses a different method from ReadString that is slightly faster but this command can only read strings written with WriteString2

## Definition

string ReadString2( iFileID )

char* agk::ReadString2( UINT iFileID )

## Parameters

- iFileID - The ID of the file to read.