File Handling in Java
File Handling in Java
PREPARED BY:
CHINTAN A GAJJAR
INFORMATION TECHNOLOGY DEPARTMENT
DR S & S S GHANDHY COLLEGE OF ENGINEERING & TECHNOLOGY, SURAT
ByteArrayInputStream
FileInputStream
BufferedInputStream
PipedInputStream
InflaterInputStream
FilterInputStream LineNumberInputStream
ObjectInputStream DataInputStream
SequenceInputStream
StringBufferInputStream
Java
Application
import java.io.File;
File myObj = new File("filename.txt");
In this case, we can call list( ) on that object to extract the list of
other files and directories inside.
String[ ] list( )
The list of files is returned in an array of String objects.