Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

How to open a file that is located in a module

$
0
0
Hello,

My code is located in my module action and needs to open a file that is
located in my-module/app/file.txt.

I tried with

VirtualFile vf = VirtualFile.fromRelativePath("app/myfile.txt");

But it takes the path of the application that uses my module.

Do you know how the solution?

Cheers,
C.

Viewing all articles
Browse latest Browse all 6551

Latest Images

Trending Articles



Latest Images