XAMPP manages a document root folder on local environment : <install-dir>\htdocs
To make a file available through your development server, copy the files in this folder.
To access file : <install-dir>\htdocs\test\sample.txt , Use in browser :
http://localhost/test/sample.txt