Reading files with Intellij idea IDE

后端 未结 7 749
野的像风
野的像风 2020-12-14 00:51

I am a long time eclipse user and I have started to play around with IntelliJ IDEA.

So from my understanding, a project in IntelliJ is the same as the Eclipse worksp

7条回答
  •  無奈伤痛
    2020-12-14 01:39

    Instructions

    1. Simply right-click on your project directory (the very top folder), then select "New > Directory". Specify a name such as "resources".

    1. (optional) Once the folder is generated then right-click "resources" directory, then select "New > Directory" and create an "images" directory.
    2. Drag-and-drop your image file into the "images" or "resources" folder you just created. Reference your newly added project file with code File myFile = new File("./resources/images/newfile.txt");

提交回复
热议问题