2019-10-04 06:49:29 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								## Core Java IO
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-12 16:30:30 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-10-04 06:49:29 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								This module contains articles about core Java input and output (IO)
							 
						 
					
						
							
								
									
										
										
										
											2018-01-12 16:30:30 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								### Relevant Articles: 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-28 20:51:04 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [How to Read a Large File Efficiently with Java ](http://www.baeldung.com/java-read-lines-large-file )
							 
						 
					
						
							
								
									
										
										
										
											2018-01-12 16:30:30 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Java InputStream to String ](http://www.baeldung.com/convert-input-stream-to-string )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [Java –   Write to File ](http://www.baeldung.com/java-write-to-file )
							 
						 
					
						
							
								
									
										
										
										
											2019-04-11 15:02:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [Java –   Convert File to InputStream ](http://www.baeldung.com/convert-file-to-input-stream )
							 
						 
					
						
							
								
									
										
										
										
											2018-01-12 16:30:30 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Java Scanner ](http://www.baeldung.com/java-scanner )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [Java –   Byte Array to Writer ](http://www.baeldung.com/java-convert-byte-array-to-writer )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [Java –   Directory Size ](http://www.baeldung.com/java-folder-size )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Differences Between the Java WatchService API and the Apache Commons IO Monitor Library ](http://www.baeldung.com/java-watchservice-vs-apache-commons-io-monitor-library )
							 
						 
					
						
							
								
									
										
										
										
											2019-02-28 19:55:45 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [File Size in Java ](http://www.baeldung.com/java-file-size )
							 
						 
					
						
							
								
									
										
										
										
											2018-01-12 16:30:30 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Comparing getPath(), getAbsolutePath(), and getCanonicalPath() in Java ](http://www.baeldung.com/java-path )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Using Java MappedByteBuffer ](http://www.baeldung.com/java-mapped-byte-buffer )
							 
						 
					
						
							
								
									
										
										
										
											2019-04-11 14:37:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [How to Copy a File with Java ](http://www.baeldung.com/java-copy-file )
							 
						 
					
						
							
								
									
										
										
										
											2018-01-12 16:30:30 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [Java –   Append Data to a File ](http://www.baeldung.com/java-append-to-file )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [FileNotFoundException in Java ](http://www.baeldung.com/java-filenotfound-exception )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [How to Read a File in Java ](http://www.baeldung.com/reading-file-in-java )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [A Guide To NIO2 Asynchronous File Channel ](http://www.baeldung.com/java-nio2-async-file-channel )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [A Guide To NIO2 FileVisitor ](http://www.baeldung.com/java-nio2-file-visitor )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [A Guide To NIO2 File Attribute APIs ](http://www.baeldung.com/java-nio2-file-attribute )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Introduction to the Java NIO2 File API ](http://www.baeldung.com/java-nio-2-file-api )
							 
						 
					
						
							
								
									
										
										
										
											2018-04-25 14:01:03 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Zipping and Unzipping in Java ](http://www.baeldung.com/java-compress-and-uncompress )
							 
						 
					
						
							
								
									
										
										
										
											2018-04-25 21:24:35 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Java NIO2 Path API ](http://www.baeldung.com/java-nio-2-path )
							 
						 
					
						
							
								
									
										
										
										
											2018-04-25 14:01:03 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [A Guide to WatchService in Java NIO2 ](http://www.baeldung.com/java-nio2-watchservice )
							 
						 
					
						
							
								
									
										
										
										
											2018-05-02 07:26:49 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Guide to Java NIO2 Asynchronous Channel APIs ](http://www.baeldung.com/java-nio-2-async-channels )
							 
						 
					
						
							
								
									
										
										
										
											2018-05-02 09:20:30 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [A Guide to NIO2 Asynchronous Socket Channel ](http://www.baeldung.com/java-nio2-async-socket-channel )
							 
						 
					
						
							
								
									
										
										
										
											2018-06-01 18:04:12 +06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Download a File From an URL in Java ](http://www.baeldung.com/java-download-file )
							 
						 
					
						
							
								
									
										
										
										
											2018-07-25 01:21:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Create a Symbolic Link with Java ](http://www.baeldung.com/java-symlink )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Quick Use of FilenameFilter ](http://www.baeldung.com/java-filename-filter )
							 
						 
					
						
							
								
									
										
										
										
											2018-10-23 16:57:41 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Read a File into an ArrayList ](https://www.baeldung.com/java-file-to-arraylist )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Guide to Java OutputStream ](https://www.baeldung.com/java-outputstream )
							 
						 
					
						
							
								
									
										
										
										
											2018-11-09 04:23:23 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Reading a CSV File into an Array ](https://www.baeldung.com/java-csv-file-array )
							 
						 
					
						
							
								
									
										
										
										
											2018-11-22 12:49:54 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Guide to BufferedReader ](https://www.baeldung.com/java-buffered-reader )
							 
						 
					
						
							
								
									
										
										
										
											2018-12-30 01:19:12 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [How to Get the File Extension of a File in Java ](http://www.baeldung.com/java-file-extension )
							 
						 
					
						
							
								
									
										
										
										
											2019-01-27 15:10:33 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [Getting a File’  s Mime Type in Java ](http://www.baeldung.com/java-file-mime-type )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Create a Directory in Java ](https://www.baeldung.com/java-create-directory )
							 
						 
					
						
							
								
									
										
										
										
											2019-02-05 16:40:37 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [How to Write to a CSV File in Java ](https://www.baeldung.com/java-csv )
							 
						 
					
						
							
								
									
										
										
										
											2019-02-05 17:23:34 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [List Files in a Directory in Java ](https://www.baeldung.com/java-list-directory-files )
							 
						 
					
						
							
								
									
										
										
										
											2019-03-11 15:39:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Java InputStream to Byte Array and ByteBuffer ](https://www.baeldung.com/convert-input-stream-to-array-of-bytes )
							 
						 
					
						
							
								
									
										
										
										
											2019-05-12 17:24:14 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Introduction to the Java NIO Selector ](https://www.baeldung.com/java-nio-selector )
							 
						 
					
						
							
								
									
										
										
										
											2019-10-04 06:49:29 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [[More -->]](/core-java-modules/core-java-io-2)