Resolved File name to string?

the_Waterleaf

Member
Joined
Nov 6, 2021
Messages
9
Programming Experience
Beginner
I've recently started work on a tiny console game, like old text based ones and I was wondering if it is possible to turn the name of the program itself into a string which you can then reference in the script itself, so that if it changes the text takes that into account? My first thought was something like "namespace Project = string fileName;", but that's most likely not gonna work, any help is appreciated
 
You can also use Assembly and AppDomain like shown in the documentation linked below. I gave you the Environment approach above because it would be more familiar to you coming from a console programming background.
 
Back
Top Bottom