How to do the following jobs in a platform-independent way? path = /home/sdhyok file = data.txt 1. Append the file name to the path => /home/sdhyok/data.txt 2. Extract only path from /home/sdhyok/data.txt => /home/sdhyok Daehyok