import java.io.IOException;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws IOException {
        System.out.println(Path.of("C:\\old_dir\\file.txt").toRealPath());
    }
}