Java File Handling in hindi (जावा फाइल हैंडलिंग क्या है ?)

 

Java File Handling in hindi


Introduction of file handling : Java file handling kya hai in hindi

Java में File Handling के लिए java.io इस package का इस्तेमाल किया जाता है | java.io package पर input.output के लिए सभी classes मौजूद होते है |

Program में File Handling के लिए streams का इस्तेमाल किया जाता है |

Java के java.io package ऐसे classes है जिनको दो streams में विभाजित किया गया है |


  1. Byte Streams
  1. Character Streams

Java Byte Stream : Java byte stream in hindi

Byte Streams 8-bit bytes से input और output करने के लिए इस्तेमाल किया जाता है |

For Example,
InputStream
OutputStream

  1. InputStream
  1. OutputStream

यहाँ पर Byte Stream के भी दो प्रकार होते है |

1. InputStream : Input Streams; source से data को read करने के लिए इस्तेमाल किये जाते है |

2. OutputStream : Output Streams; destination पर data को write करने के लिए इस्तेमाल किये जाते है |

Java I/O के लिए दो महत्वपूर्ण methods बनाये गए है |

public int read() throws IOException : यहाँ stream से byte को read किया जाता है |

public void write(int i) throws IOException : यहाँ stream पर byte को write किया जाता है |



अगर आपको यह पोस्ट 📑 पसंद आई हो तो अपने मित्रों के साथ जरूर शेयर करें। धन्यवाद !

Maxon

Hello there! I'm Maxon, a dedicated UI/UX designer on a mission to transform digital experiences into intuitive, user-centric journeys. With a keen eye for detail and a passion for crafting aesthetically pleasing interfaces, I strive to create designs that not only look stunning but also enhance usability and functionality.

Post a Comment

Previous Post Next Post