You do not describe what actions you want to perform on your file.
Suppose you want to show the file to your user using the default program, then do:
void clicked()
{
SysResource::saveToTempFile(SysResource::getResourceNode(resourceStr(MyImage), false, "notes.txt");
WinAPI::shellExecute("notes.txt");
}
Use a temporary file instead of a hardcoded name.
You may also display the text in a form control:
void clicked()
{
container con = SysResource::getResourceNodeData(SysResource::getResourceNode(resourceStr(MyImage), false, "notes.txt");
infoStringControl.text(conpeek(con,1)); //Not sure how to use the container!
}