Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert fileinputstream to string java

import org.apache.commons.io.IOUtils;

InputStream inStream = new FileInputStream("filename.txt");
String body = IOUtils.toString(inStream, StandardCharsets.UTF_8.name());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #fileinputstream #string #java
ADD COMMENT
Topic
Name
8+6 =