Skip to content

Instantly share code, notes, and snippets.

@vhsu
Created July 30, 2018 16:44
Show Gist options
  • Save vhsu/4d947e3b38fa3f3ec53d16a3182c8573 to your computer and use it in GitHub Desktop.
Save vhsu/4d947e3b38fa3f3ec53d16a3182c8573 to your computer and use it in GitHub Desktop.
Convert File to Array
//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