<div class="meta" robots="noindex">

</div>

Method

# Xojo.IO.SpecialFolder.GetResource

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `SpecialFolder.Resource<specialfolder.resource>` as a replacement.

</div>

## Description

Gets the specified file (by name) located in the Resource folder of the app's main bundle (Mac or iOS) or in the Resource folder on Windows, Linux and console apps.

## Notes

Use a Copy Files Build Step to copy files into the Resource folder.

<div class="warning">

<div class="title">

Warning

</div>

An `InvalidArgumentException</api/exceptions/invalidargumentexception>` will be raised if the file the does not exist.

</div>

## Sample code

Gets a file that has been copied to the Resource folder:

``` xojo
Dim bundleFile As Xojo.IO.Folderitem
bundleFile = Xojo.IO.SpecialFolder.GetResource("AppDatabase.sqlite")
```

## Compatibility

All project types on all supported operating systems.
