28 Replies
Code :
The label must change to theme name but its not changing !
please help :<<
you're reading the contents of the file, but checking with
File.Exists
for the content
so when entering the if clause, what is the value of ThemeName
The File is exist
ThemeName
what is the valueu mean the line in txt ?
on
if (File.Exists(ThemeName))
no
put a breakpoint (f9 on visual studio) on that if line, and check the value of ThemeName
file loc :
@"C:/TrexLauncher Minecraft Bedrock/Launcher/Theme/Theme/Theme.TL"
File txt : Theme : Pac-Man
okay
ok so file content is:
Theme : Pac-Man?
yes
and you use
File.Exists
for what?if the file exist label change
there is no file called
Theme : Pac-Man
if no so label dont change
i meant the line in the file Theme.TL
sure, but you are reading it
into
ThemeName
and then checking if such a file exists
File.Exists
like how
?
?
just debug the code until you hit the if clause, and observe the value of
ThemeName
and use a breakpointmhm
wait
didnt work
😦
you're still here with this
how on earth do you have that wrong path in your code
ah no ok now seem better
but still, why / instead of \
string ThemeName = File.ReadAllText(@"C:\TrexLauncher Minecraft Bedrock\Launcher\Theme\Theme\Theme.TL");
idk whats happening
it wont work
but no error
wtf is this on earth ??
Stop messaging stuff like "didn't work" or "why isn't this working??" expecting us to spoonfeed you with the lack of information that we have. You clearly have no idea what you're doing, so giving you an answer is only going to make you return in 5 minutes when you encounter the next thing. Give us some actual information by telling us what the issue is, and what any possible errors tell you. And maybe (maybe!) try to understand what the code is doing at all.
look guys the label with the text Theme : Defult
It Must Be
Theme : PlayStation 3
Again, there is nothing to work with here. No code, error, anything.
MAN PLEASE I HAVE TO POST THAT
ANY ERR ON MY LAUNCHER WILL CAUSES MONEY LOSE :_:
@Jana ♡ what does the line with
File.ReadAllText
do?
convey your interpretation of iti fix it
i just removed the if statment
I love it
This guy is completely oblivious to what he's doing
Just for the record, your if statement did not check if the file existed on the path, it checked if it existed using the contents inside the actual file
Not to mention the whole if statement is useless anyway