get a file by his name

Permalink 1 user found helpful
Hello,

I would like to access a pdf file which I have created inside the "files" folder. I did not upload this file via the dashboard. What is the best way to get that file programmatically?

Here is what I tried : $file = "/files/static/report.pdf";

Thanks for your help.

 
sev replied on at Permalink Reply
it works, right path is /application/files/filename"