Storing filename into Variable

Is it possible to store a filename into game Variable?


For example if "Actor's" image is Actor1.png string "Actor1" would be stored into a variable
store variable with $dataActors[x].faceName
store variable with $dataActors[x].faceName

It works, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/storing-filename-into-variable.58160/