This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am using the FileOutputStream to print a uploaded html file to a file on my machine. I must manipulate the data before I write it to the disk. I do use orielly's classes, but I have another problem, when I use: FileOutputStream fout = new FileOutputStream(theFile); The file prints in my tomcat bin directory. (I am geeting this file from a servlet using tomcat. I am tryign to get it to print in a folder in my root directory but I cant. I tried: fout = new FileOutputStream( "c:\\portal\\temp\\ "+ theFile ); fout = new FileOutputStream( "\\portal\\temp\\ "+ theFile ); neither works but the directory is there.