IntelliJ: how to access files in bin-directory? -


i'm working on project in java1.6 need read out .txt-file.

the line of code looks this:

l = new lexer("bin/test.txt"); 

the file test.txt located in directory "bin" "src" is, too. on partner's eclipse runs correctly not on intellij12ce.

seems file can't found.

i'm using macbookpro osx10.8

many in advance, rbn

when eclipse builds project - compiles *.java files exist under "source" directory , puts resulting *.class files output directory, , copies else in "source" directory isn't .java file output directory.

when idea builds project - same kind of thing *.java files, copies restricted set of other kinds of files source directory output directory.

you can find definition of kind of files idea copy under: "/settings/project settings/compiler/resource patterns". in there, see set of filename patterns "?.properties;?.xml;?.gif;?.png;?.jpeg;?.jpg;?.html;?.dtd". note *.txt not there default, idea not copying text files across source directory output directory. append ";?*.txt" end of resource patterns string , should want.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -