createHasteBinFromFile

Create a HasteBin post from a given text file. The text file provided is read into a string and then passed onto Haste zneix which creates a HasteBin post out of the passed String and returns the URL to the newly created post.

Created with the help of kaimu-ken's hastebin.java (MIT License) and edited to use HasteBin fork zneix/haste-server. My fork of kaimu-kun's hastebin.java is available at Griefed/hastebin.java.

Return

String. Returns a String containing the URL to the newly created HasteBin post.

Author

kaimu-kun/hastebin.java

Griefed

Parameters

textFile

The file which will be read into a String of which then to create a HasteBin post of.