Hei!

My first post was a bit miss leading, sorry for that, as im not that beginner what it lets people to understand, sorry, i just havent made IO routines with Java, ever.
i can build many different types of games with c++ and some with Java, but, liked i said, i havent made Java IO routines, ever, and would really presiate if
someone could help me a bit..
the problem is that i dont know how to read a data file from a path where .CLASS files are..
in c++ if you want to load a file from a directory where .exe file is launched you simply use "thefilename.dat" and nothing else this seems not to be true with java

if i put a line to my code..
in = new FileInputStream ("input.txt");
i receive an error even if my 'input.txt' is on my .CLASS directory, why..

public void copyBytes () throws IOException
{
FileInputStream in = null;
FileOutputStream out = null;
try {
in = new FileInputStream ("c:/input.txt");
out = new FileOutputStream("c:/output.txt");
int c;
while ((c = in.read()) != -1) {
out.write(c);
}
} finally {
if (in != null) {
in.close();
}
if (out != null) {
out.close();
}
}
}
code works fine but when i change the line
in = new FileInputStream ("c:/input.txt");
to
in = new FileInputStream ("input.txt");
to load file 'input.txt' from where the .class files are, i receive an 'file not found', why

from where is Java loading 'input.txt' when there is no path included?? c++ loads where the .exe is

java.io.FileNotFoundException: input.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at MultiBufferTest.copyBytes(MultiBufferTest.java:84)
at MultiBufferTest.<init>(MultiBufferTest.java:106)
at MultiBufferTest.main(MultiBufferTest.java:184)
JariTapio / Helsinki
//---
Game developing is a way of fun, thanks for your code..