create Haste Bin From File
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
Griefed
Parameters
text File
The file which will be read into a String of which then to create a HasteBin post of.