# SetRawWritePath

## Description

Sets the folder where files created by AGK will be stored. This has no effect on iOS since it cannot write outside its app folder. You can set this to any absolute path on the device, however some locations, such as the Program Files folder on Windows, will require administrator privileges to write to them. Some locations will be protected by the operating system, SetRawWritePath will let you set the path to these locations but any attempt to write to them will fail. You can use GetDocumentsPath to get the system defined documents folder for the current user, or sdcard folder on Android, which is guaranteed to allow write access.
This command is now deprecated. The preferred method of accessing files outside of the usual write folder is to use the OpenRawFolder commands and "raw:" file paths.

## Definition

SetRawWritePath( str )

void agk::SetRawWritePath( const char* str )

## Parameters

- str - The path to use as the write folder