# WriteString2

## Description

Writes a string to the given file, which must have been opened for writing. Note that this command is not meant for human readable files and should only be used for files that will later be read with ReadString2. To create human readable files use WriteLine This uses a different method from WriteString that will be faster for AGK to read later, but it is not compatible with ReadString, you must use ReadString2 to read strings written with WriteString2

## Definition

WriteString2( iFileID, str )

void agk::WriteString2( UINT iFileID, const char* str )

## Parameters

- iFileID - The ID of the file to modify.
- str - The string to write.