Godot Version
using Godot;
using System;
public partial class scene_1 : Node2D
{
private Label mylabel = new Label();
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
String mydatapath = ProjectSettings.GlobalizePath("res://");
mydatapath += "mydata.txt";
string content = "";
using var file = Godot.FileAccess.Open(mydatapath , Godot.FileAccess.ModeFlags.Read);
if (file == null ){ content = Godot.FileAccess.GetOpenError().ToString(); }
mylabel.Text = content ;
mylabel.Position = new Vector2(100, 200);
mylabel.Modulate = new Color(0, 0, 0, 1);
mylabel.Scale = new Vector2(2, 2);
GetNode("/root/scene1").AddChild(mylabel);
}
Question
Ok so when I export my game, it doesn’t find my mydata.txt : the error is file not found. How to export this file when I export my game …
first I wanted to use a csv but it doesn’t work
I put in the export setting the *.csv , *.txt but still doesn’t export
I change my project in git to none …
I test my app on android but it doesn’t work , also I try on windows doesn’t work…
for the CSV I try to change all the settings in the tab import … translation or not…
I’m tired xd