Created
July 30, 2018 16:44
-
-
Save vhsu/4d947e3b38fa3f3ec53d16a3182c8573 to your computer and use it in GitHub Desktop.
Convert File to Array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Convert a file to an array (each line /n as an element) | |
public String[] UrlFileToArray(String fileurl){ | |
ArrayList inputFile =readFile(fileurl); | |
String urlArray[] = (String[])inputFile.toArray(new String[inputFile.size()]); | |
return urlArray; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment