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


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/”

Note : we are using MapR