Read/Writing a file (TXT, CSV, EXCEL) to FTP drive and a server

Hi,

I have to read/write the file which is another server/environment. For this we have to use FTP like below. Can you please any one know about this. If so can you please share the Scala program and POM file for the same.

val dataSource = “ftp://user:pwd/192.168.1.5/brecht-d-m/map/input.nt”

Note : we are using MapR