# ReadString

## Description

Reads a null terminated 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 WriteString, 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.

## Definition

string ReadString( iFileID )

char* agk::ReadString( UINT iFileID )

## Parameters

- iFileID - The ID of the file to read.