Why FileWriter doesn't create a new file?
Consider the following code: m_Writer = new PrintWriter(new FileWriter("LoginHistory.dat")); m_Writer.println(Integer.toString(s_NumOfLogins)); m_Writer.println(m_LoginHistoryStr); m_Writer.close(); Any ideas why I don't find any file called LoginHistory.dat? Thanks Update: I've just found that I get an exception after line: m_Writer = new PrintWriter(new FileWriter("LoginHistory.dat")); and its details are: Any ideas what is the real problem? Listening for transport dt_shmem at address: tomcat_shared_memory_id 27/05/2012 15:52:17 org.apache.catalina.startup.HostConfig checkResources INFO: