Core Java With OCJP/SCJP: File I/O Part-3||FileReader||importent methods||Bufferedwriter

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 48

  • @jenishdholariya6224
    @jenishdholariya6224 5 ปีที่แล้ว +9

    Great great great explanation sir thank you very much for such helping😊👍👍👍

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 ปีที่แล้ว +1

      Hello Jenish.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/kqvaf2

  • @ranveervaghela7030
    @ranveervaghela7030 2 หลายเดือนก่อน +2

    Completed watching on Sept 21, 2024 at 7.05 PM :)

  • @utsavmodh9698
    @utsavmodh9698 7 หลายเดือนก่อน +1

    Bravo 🎉🎉🎉

  • @-AjayChauhan
    @-AjayChauhan 7 หลายเดือนก่อน +2

    COMPLETED THIS VIDEO TOO
    DAY 44 OF #75daysofcode in Java
    7 April, 2024

  • @akshayanarase8747
    @akshayanarase8747 4 ปีที่แล้ว +1

    Nice explinations sir solved other practical examples for practical hanbooks

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 ปีที่แล้ว

      Hello Akshay.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/kqvaf2

  • @akash2626.-
    @akash2626.- ปีที่แล้ว +1

    Very talented sir 🙏🙏🙏🙏

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  ปีที่แล้ว

      Hello Friend.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/kqvaf2

  • @naveenmuthusamy9147
    @naveenmuthusamy9147 3 ปีที่แล้ว +2

    thanks alot sir

  • @rajalakshmis201
    @rajalakshmis201 5 ปีที่แล้ว +5

    Thank you sir

  • @EngineerVaibhav
    @EngineerVaibhav ปีที่แล้ว +1

    122 video completed❤🎉🎉

  • @AshwaniBansal-ash
    @AshwaniBansal-ash 8 ปีที่แล้ว +3

    Thank you for Wonderful Class.
    Hey! Why SUN people not use newLine() method in FileWriter and readLine() method in FR. What is the need to make new concept Buffer Writer and Buffer Reader?
    Can you please Enlighten us...

  • @rahulsingh-jg9wt
    @rahulsingh-jg9wt 8 ปีที่แล้ว +1

    Thanks for awesome explanation . Just one thing read() method return ASCI or unicode

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  8 ปีที่แล้ว

      Hi Rahul singh.The methods getBinaryStream() , getAsciiStream() , and getUnicodeStream() ... you can get the column as a Java InputStream and use the read() method of the ...

    • @tarungoyal4428
      @tarungoyal4428 8 ปีที่แล้ว

      Unicode as characters are of 2 bytes in java and uses UNICODE representation.

    • @jvsnyc
      @jvsnyc 3 ปีที่แล้ว

      In Java 11 onwards, you can open a FileReader() and tell it which CharacterSet to use in the constructor (for instance, "UTF-8". Before that, you can only open one using the Default Character Set you are running with.

  • @esskay4193
    @esskay4193 8 ปีที่แล้ว

    You are Awesome Sir !!

  • @suneelsai9981
    @suneelsai9981 6 ปีที่แล้ว +4

    how can we type cast to long to int for length( ) method, child cannot hold parent right? (byte--short--int---long---float-Double)

    • @luciferg3587
      @luciferg3587 4 ปีที่แล้ว +4

      Int and Long are datatypes, not reference variables. We can typecast long to int. If the value we receive is within the int range then no problem but if it exceeds the int range then we will get a negative int value or a positive value depending upon the long value.
      You can check the range values of these datatypes for yourself and run it in a program.
      For example, the range of byte is -128 to 127, and short is -32,767 to 32,737.
      Short i = 130;
      Byte b = i;
      Here we will get an error if we don't typecast.
      So we use Byte b = (byte)i;
      System.out.println(b);
      The answer we will get is -126, as the short value isn't accommodated in the byte-range so by typecasting we tell the compiler to go ahead and assign the value.
      This is a similar case with int and long.

    • @balla4004
      @balla4004 3 ปีที่แล้ว

      @@luciferg3587 amazing really amazing explanation ❤️

  • @veenaven5004
    @veenaven5004 6 ปีที่แล้ว +1

    Sir how to display txt file names with prefix input from a folder

  • @NareshKumar-wz8tm
    @NareshKumar-wz8tm 7 ปีที่แล้ว +1

    The out put is not coming corrent when i am writing fr.read(). in place of i

  • @raghavenderbekkem7288
    @raghavenderbekkem7288 5 ปีที่แล้ว +3

    Sir one doubt we can't communicate buffer reader directly to abc.txt file

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 ปีที่แล้ว

      Hello Raghavender.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @poojadubey2837
    @poojadubey2837 7 ปีที่แล้ว +1

    what is need of close method

  • @pavanshirsat2636
    @pavanshirsat2636 ปีที่แล้ว +1

    What is role of void close() in the file reader

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  ปีที่แล้ว

      Hello Pavan.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

    • @Dhiraj-nd9vy
      @Dhiraj-nd9vy 5 หลายเดือนก่อน

      it is not like what u r thinking buffered reader is completely different thing think like buying items single by single and checking out to hjome one by one and adding your items in a cart at once and checkout once

  • @ravikumarsinha332
    @ravikumarsinha332 2 ปีที่แล้ว +1

    In FIleReader why do we say we are reading data character by character, when we use int read(char []) method it is not character by character.

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  2 ปีที่แล้ว

      Hello Ravi.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @devanampriya1791
    @devanampriya1791 ปีที่แล้ว +1

    hello anna...is this video relevant in 2022..after 8 years

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  ปีที่แล้ว

      Hello Friend.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @jayramkumar2284
    @jayramkumar2284 4 ปีที่แล้ว +2

    Sir one doubt i.e.
    Fr.write(Ch);
    Is this statement total character read at one time?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 ปีที่แล้ว +1

      Hello Jayram.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

    • @kavyabanka4482
      @kavyabanka4482 ปีที่แล้ว

      Yes

  • @utsavmodh9698
    @utsavmodh9698 7 หลายเดือนก่อน +1

    please dont watch without liking otherwise i will give you big left n right😂

  • @eadunuripranay5977
    @eadunuripranay5977 4 ปีที่แล้ว +1

    1:21:30 i don't understand when i run the BufferedReader progrm......o/p is getting displayed in a single line whatz wrong please suggest?
    abcd.txt:
    --------------
    d
    abcd
    learn java
    from durga
    code:
    ---------
    import java.io.*;
    class BufferedReaderDemo
    {
    public static void main(String[] args) throws IOException
    {
    File f=new File("abcd.txt");
    FileReader fr=new FileReader(f);
    BufferedReader br=new BufferedReader(fr);

    String s=br.readLine(); //read data line by line.
    while(s!=null){
    System.out.print(s);
    s=br.readLine();
    }
    br.close();
    }
    }
    o/p: dabcdlearn java from durga

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 ปีที่แล้ว

      Hello Pranay.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

    • @rahulkamble2792
      @rahulkamble2792 4 ปีที่แล้ว +2

      please use System.out.println instead of System.out.print in your code.

  • @tarunagarwal7748
    @tarunagarwal7748 6 ปีที่แล้ว

    I got a CE- cannot find symbol
    import java.io.*;
    class BufferedReaderDemo
    {
    public static void main(String[] args)throws IOException
    {
    FilerReader fr=new FileReader("abc.txt");
    BufferedReader br=new BufferedReader(fr);
    String line=br.read();
    while(line != null)
    {
    System.out.println(line);
    line=br.read();
    }
    br.close();
    }
    }

    • @eadunuripranay5977
      @eadunuripranay5977 4 ปีที่แล้ว +1

      read() method return type is int but not String & when BufferedReader is used better to go for readLine() method instead of read() method.

    • @rahulkamble2792
      @rahulkamble2792 4 ปีที่แล้ว +1

      FilerReader fr=new FileReader("abc.txt"); it is FileReader and not " FilerReader " . please correct

  • @n.rukkumani7297
    @n.rukkumani7297 8 ปีที่แล้ว +1

    hai sir :
    bufferreader cannot communicate with the file directly and it is communicate through filereader .but file reader can read only char by char then how bufferreader can read line by line through filereader .reply please .

    • @chetanpatil5540
      @chetanpatil5540 8 ปีที่แล้ว +6

      "BufferedReader" as name contains "Buffer" which means its kind of container to hold the data.With the help of readers(in this case FileReader) BufferReader keeps gettingcharacters until it gets "
      " .As soon as it encounters newline character it covers those chacters to String. and now we can read a whole line with the help of methods provided by BufferedReader

    • @n.rukkumani7297
      @n.rukkumani7297 8 ปีที่แล้ว

      thank u ver much sir

  • @poojadubey2837
    @poojadubey2837 7 ปีที่แล้ว +1

    what is need of close method

  • @poojadubey2837
    @poojadubey2837 7 ปีที่แล้ว

    what is need of close method