This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Hi I am using tomcat 3.2 as a test environment. Installed in d:\tomcat I have to read and write data to local file I am using relative path String inputFile = "..\\cnvinput"; RandomAccessFile InputRA; InputRA = new RandomAccessFile(InputFile, "rw"); InputRA.write(InputArea); After Execution an Input File is created in d:\tomcat So I guess the relative path is being called in reference with d:\tomcat \bin How do I change the Relative Path reference to my Class Current Directory say C:\wave\WaveProj\bin thanks Prabhat Gupta
posted 14 years ago
Prabhat. The only way that you can do is to specify an absolute path to c:/wave/WaveProj/bin. Relative path in this case is not possible. [ January 14, 2002: Message edited by: Rajul King ]