Getting and displaying a filename

Does anybody know how to retrieve a filename, for example I trying to display a song’s filename in a dynamic text box whenever it chosen to play