Java FileOutputStream close() MethodThe close() method of FileOutputStream class is used to close the file output stream and releases all system resources associated with this stream. SyntaxParameterNA Return ValueThis method does not return any value. ExceptionNA Example 1Java Program to releases FileOutputStream resources from the streams. Output: Enter a string insert into JavaTpoint txt file -------> ASHU BHATI. String that we are enter into the file-----> ASHU BHATI. Example 2Java Program to releases FileOutputStream resources from the streams. Output: Enter a string insert into JavaTpoint txt file -------> ashu ASCI value of the string that we are enter into the file-----> 9711510411732
Next TopicJava FileOutputStream Class
|