How to make a buffer stream for storing strings in memory?
<p>I have following task: to make application for uploading data into FTP server using apache.commons.net.FTPClient, etc. There is method client.storeFile() which allows to upload file (it requires InputStream as 1 of method parameters). But I want to make txt file into server which should contain array of strings - array is variable of program. Should I make file, put strings into it and transfer this file into method, or there is stream which allow to store strings in memory without making file? Thank you, anyway. </p>
