Back to project page innovativeproject-meetingdataexchange.
The source code is released under:
MIT License
If you think the Android project innovativeproject-meetingdataexchange listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package controllers; /*from w ww . j a va 2s. c o m*/ import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import com.fasterxml.jackson.databind.node.ObjectNode; import play.libs.Json; import play.mvc.Controller; import play.mvc.Result; public class GeneralStuff extends Controller{ public static Result getName() throws IOException { return ok(web_getName()); } public static ObjectNode web_getName() throws IOException{ BufferedReader br = new BufferedReader(new FileReader("server.config")); String line = br.readLine(); ObjectNode result = Json.newObject(); result.put("servername", line); return result; } }