2018-01-12 16:30:30 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								=========
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								## Core Java IO Cookbooks and Examples
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								### Relevant Articles: 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Java - Reading a Large File Efficiently ](http://www.baeldung.com/java-read-lines-large-file )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [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 )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Java - Convert File to InputStream ](http://www.baeldung.com/convert-file-to-input-stream )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [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 )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Calculate the Size of a File in Java ](http://www.baeldung.com/java-file-size )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Comparing getPath(), getAbsolutePath(), and getCanonicalPath() in Java ](http://www.baeldung.com/java-path )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Using Java MappedByteBuffer ](http://www.baeldung.com/java-mapped-byte-buffer )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Copy a File with Java ](http://www.baeldung.com/java-copy-file )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [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-09-07 16:56:13 +06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
								
									
								 
							
							
								-  [Initialize a HashMap in Java ](https://www.baeldung.com/java-initialize-hashmap )
							 
						 
					
						
							
								
									
										
										
										
											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 )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
								
									
										 
									
								 
							
							
								-  [Getting a File’  s Mime Type in Java ](http://www.baeldung.com/java-file-mime-type )