Read a file by the relative path

I need to read the file by the relative path. For example, the relative path of `test.md` is  "../test/test.md" . How do I read this file  ?


I tried to use PsiDirectory#directory.findFile ("../test/test.md"), but this is not ok. Please help me.

 

Thanks

ML

0
1 comment

PsiDirectory.getVirtualFile, VirtualFile.findFileByRelativePath, PsiManager.findFile

0

Please sign in to leave a comment.