简体   繁体   中英

How to get the contents of a file from an eclipse project

I am creating a plugin for eclipse and would like to know how can I get the contents of a specific file?

Example: a function that when passing a name, path or any identifier of the file returns the contents of it.

I've seen that the Ifile interface exists but I did not understand how to return the contents of a particular file from a project.

如果您已经有IFile实例,则只需调用IFile.getContent()方法即可获取InputStream。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM