This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I am trying to created a file i/o program that will ftp the information when the window closes. The information has to go to a different server hence why I want to do an ftp and not have the file placed somewhere on the network. The question is then does anyone have an idea as how to call the ftp class within the same program? (2 main classes, one program)
Perhaps I don't understand exactly what you are asking, but you should be able to do something like this:
Of course, these may not be the exact methods you need. I'm also assuming that you wrote the FTP class, but if the API already has one, you should use that instead. Check out the API docs to find what functionality it provides this way. Also, it will help a lot if you can be more specific. You should post a small amount of code to illustrate what you are doing. This gives your question some context and we can work with it from there. Layne