# CreateFileFromMemblock

## Description

Creates a file from a memblock without any processing of the memblock data, the file will be a byte for byte copy of the memblock data. You can use relative paths in the file name to write to sub folders or use SetCurrentFolder to browse there first. You can use absolute paths by adding a forward slash to the beginning of the filename, in this case the folder set with SetCurrentFolder is ignored. For example /media/file.txt will place it in the media folder even if SetCurrentFolder was used to browse to /media/somefolder

## Definition

CreateFileFromMemblock( filename, memID )

void agk::CreateFileFromMemblock( const char* filename, UINT memID )

## Parameters

- filename - The name of the file to create, if it already exists it will be overitten.
- memID - The ID of the memblock to read, the memblock is unaffected by this command.