In the example bellow I create a txt file and imported it into project folder , I named the file to "myfile.txt" and I wrote in it " Hello World " , and it will be displayed in the text object
async function OnBeforeProjectStart(runtime)
{
const textFileUrl = await runtime.assets.getProjectFileUrl("myfile.txt");
const myTxt = runtime.objects.Text.getFirstInstance();
const response = await fetch(textFileUrl);
const fetchedText = await response.text();
myTxt.text = fetchedText
runtime.addEventListener("tick", () => Tick(runtime));
}