get filepath from file