commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [VFS] How to create a new file?
Date Wed, 31 Jan 2007 14:10:18 GMT
Hi!

Please prefix your e-mail subject with the project name you have
problems with. In this case [VFS].

> I need to upload files to a server through SFTP. First I have to create a 
> file with a new file name. Then I have to write the outputstream to that 
> file to fill it with content.
>   
Create a file:
VFS.getManager().resolveFile("abc.txt").createFile();

replace "abc.txt" with your sftp url.


Ciao,
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message