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

PsiDirectory.getVirtualFile, VirtualFile.findFileByRelativePath, PsiManager.findFile

0

请先登录再写评论。