My goal is to to convert a .txt file on an FTP page to a simple String
for easy manipulation.
The specific .txt file is here: ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqlisted.txt. It is an anonymous FTP page, so when I use my computer's browser, there's no need for a username or password.
I've tried incorporating different codes and tips from the following sources:
- Reading Text File From Server on Android
- http://examples.javacodegeeks.com/core-java/apache/commons/net-commons/download-file-from-ftp-server/
- How to read a text file via FTP?
- Reading txt file from an ftp server and returning it from AsyncTask
- unable to read file from ftp in android?
- Howto do a simple ftp get file on Android
- http://www.javaworld.com/article/2073325/java-app-dev/java-ftp-client-libraries-reviewed.html
- http://developer.android.com/reference/java/net/URLConnection.html
None of what I've tried above helped. I'm not quite sure what I'm doing wrong.
To be clear, all I want to do is to get the plain text from the posted .txt file. I have no interest in downloading said file onto my device's memory.
If you could provide me with a step-by-step explanation on how to do this, I'd be very thankful.