I know that this is not what you asked about, but.
If possible, do not use FTP, use SCP (file copy with SHH-protocol). FTP transfers your login and password in clear text, for anyone to read that can with etherial or other tools. SCP (and SSH) crypt all your trafic, inluding user name and passwords.
And never store passwords in text files...