Lecture 47 Reading from file using BufferedReader in Java Hindi

Sdílet
Vložit
  • čas přidán 13. 09. 2024
  • Like, Comments, Share and SUBSCRIBE

Komentáře • 63

  • @shobhitsrivastava211
    @shobhitsrivastava211 Před 5 lety +3

    Sir,your videos are a kind of inspiration !

  • @SeemaSharma-tz1pp
    @SeemaSharma-tz1pp Před 4 lety +1

    Best explaination seen till now

  • @PriyankaGupta-cg1dn
    @PriyankaGupta-cg1dn Před 5 lety +4

    nyc tutorials sir, pls make some videos on android and python as well for software engineers

  • @anilkushwahaji5788
    @anilkushwahaji5788 Před 8 lety +5

    awesome tutorial

  • @bareetsingh
    @bareetsingh Před 4 lety +1

    Thanx Sir.

  • @santusantu486
    @santusantu486 Před 5 lety +7

    sir, my question is, in lecture 47 if we initialize br.read(); into a instance member variable (ch) before the while loop then why it is show infinite loop ?

  • @theprimordialdude1138
    @theprimordialdude1138 Před 5 lety +2

    Please sir make videos on how to read, write music file and video files etc.
    It will very helpful to learners. Because I like your teaching style i want to learn it.

  • @ronak1520
    @ronak1520 Před 11 měsíci

    Your teaching is awesome sir❤

  • @Naruto77695
    @Naruto77695 Před 6 lety +5

    best from pakistan

  • @anshsrivastava61
    @anshsrivastava61 Před rokem

    wow genius idea to make buffer

  • @bhaktikhokad7113
    @bhaktikhokad7113 Před rokem

    nice explaination sir

  • @vedarthcards8893
    @vedarthcards8893 Před 4 lety

    Great video sir
    Thanks
    Confusion clear now

  • @anilkushwahaji5788
    @anilkushwahaji5788 Před 8 lety +3

    very very nice sir

  • @chandanikumari8509
    @chandanikumari8509 Před 7 lety +1

    Sir,nice video

  • @annapurnakumari7299
    @annapurnakumari7299 Před 5 lety +1

    Thanks sir

  • @vinitchuri6664
    @vinitchuri6664 Před 7 lety +1

    Sir in the while loop the read() pointer is not increment so how is it able to print the * next * character

  • @shalinisaini755
    @shalinisaini755 Před 6 lety +1

    thank you sir ji

  • @gopalhatwal7245
    @gopalhatwal7245 Před 4 lety

    very nice video
    thnk u sir

  • @navdeepkaushik218
    @navdeepkaushik218 Před 8 lety +1

    very good sid

  • @khushboorawat3627
    @khushboorawat3627 Před 4 lety

    I like it..... Very good

  • @ashishverma2016
    @ashishverma2016 Před 8 lety +1

    awesome Explanation. thank you very much sir. 1 question: how can we refresh (clear) Buffer ?

  • @ShubhamSharma-nn3ly
    @ShubhamSharma-nn3ly Před 5 lety +3

    Sir in readLine() we have not incremented the count so how does it will go to read the next line ? Logically it should scan the the same line repeatedly

    • @sairajdas6692
      @sairajdas6692 Před 5 lety +2

      No, it is like a generator. Every time it is called it automatically goes to the next line.

    • @muhammadwaqas6886
      @muhammadwaqas6886 Před 5 lety

      readLine is already defined, the thing you are talking about is defined in it, you just need to call that method.

  • @kostavsheoran1530
    @kostavsheoran1530 Před 4 lety

    aapne Reader aur Writer class ke baare me batana chahiye tha !

  • @pritamhillol5
    @pritamhillol5 Před 7 lety

    Beautiful explanation

  • @anujmishra1800
    @anujmishra1800 Před 7 lety +2

    Sir pleezz buffered reader thoda or easy tarike se possible hoga to pleezz bataiye

  • @sairajdas6692
    @sairajdas6692 Před 5 lety +3

    Sir how to use read(char cbuf[], int off, int len) to coy the entire content into the char array?

    • @AnandKumar-kz3ls
      @AnandKumar-kz3ls Před 11 měsíci

      File file = new FileReader(fileName);
      BufferReader = new BufferReader(file);
      int bytes = file.length();
      char[] chuf= new char[bytes];
      bf.read(cbuf,0,bytes); dont know it will work or not too lazy to install java on my laptop and test

  • @omyrazeem2571
    @omyrazeem2571 Před 3 lety

    Thank you .

  • @OasisFinder
    @OasisFinder Před 6 lety +1

    i have a question, so after watching both ways ,which is better to use as a programmer FileOutputStream , FileInputStream OR BufferedWriter ,BufferedReader?

    • @inclinedscorpio
      @inclinedscorpio Před 6 lety +2

      Buffered is preferable because it uses BUFFER which helps in fast retrieving and storing of data

  • @abhinavrai8430
    @abhinavrai8430 Před 6 lety +1

    What if we try to read an image file or video file?

  • @yashjha3577
    @yashjha3577 Před 4 lety

    sir if we can directly pass reader or writer class in constructor then y r u choose to pass subclass is there any strong reason for this?

  • @mohdamaan4855
    @mohdamaan4855 Před 4 lety

    Thnq sir

  • @fourtwentytv9048
    @fourtwentytv9048 Před 5 lety

    Super sir

  • @chicku975
    @chicku975 Před 7 lety

    Nice sir g !

  • @ahtishamzaheer7661
    @ahtishamzaheer7661 Před 7 lety

    Agr humay 4,5 line read karni ho to kyaa karay gay sir

  • @chetanharitas1287
    @chetanharitas1287 Před 4 lety +1

    Sir,
    I tried This to read full file by using overloaded read() function but it is not working so properly please Guide!!!
    while((ch=br.read(c,0,20))!=-1){
    System.out.print(c);
    if(c==null){
    break;
    }
    }

  • @navdeepkaushik218
    @navdeepkaushik218 Před 8 lety +2

    sir

  • @siteshwar.pandey
    @siteshwar.pandey Před 4 lety +1

    Sir! If i want to write some text in another line that means I want a new line for writing
    Can it will possible ?

  • @dogememe216
    @dogememe216 Před 2 lety

    why do we use close()?

  • @rajendrakrsurana3570
    @rajendrakrsurana3570 Před 6 lety +1

    can u please explain it in more easily way

  • @karlmax61
    @karlmax61 Před 3 lety

    Sir how the array variables are blank.
    I mean it should contain some garbage value?

    • @DeepakKumar-dw1re
      @DeepakKumar-dw1re Před 2 lety

      In java...there is no garbage value...
      Either blank or default value

  • @pushkargoyal4278
    @pushkargoyal4278 Před 4 lety

    Sir string class ka object toh banaya hi nahi sirf reference variable bnaya hai

  • @vishalgawade5027
    @vishalgawade5027 Před 6 lety

    sir can we use for loop instead of do while loop

  • @khushijain2343
    @khushijain2343 Před rokem

    Sir, is program ko NetBeans pr kese kare

  • @_NarSimha_
    @_NarSimha_ Před 7 lety

    Sir i m getting a error in this program.... Help me sir
    BufferedRead.java:10: error: constructor FileReader in class FileReader cannot be applied to given types;
    BufferedReader bf = new BufferedReader(new FileReader(filereader));
    ^
    required: no arguments
    found: Reader
    reason: actual and formal argument lists differ in length
    2 errors

    • @zenshyam
      @zenshyam Před 5 lety

      what is file reader here?....you should pass the String..basically the location of the file in...new FileReader("D:/aman bhai/newfile.txt"));.....Like this.....Hope you might have solved it earlier...if not.....then try this one

  • @believerofgod4778
    @believerofgod4778 Před 5 lety

    Please make a video on StringTokenizer class in java.

  • @dilipds9584
    @dilipds9584 Před 6 lety

    Why we use. txt with file name

    • @rahulagrawal1652
      @rahulagrawal1652 Před 6 lety

      dilipds9584 .txt is a file extension which stands for text file format.. Here we are making a text data file for storing our data..

    • @dilipds9584
      @dilipds9584 Před 6 lety

      Rahul Agrawal thnx, can we also use other file extension?

    • @divyamdembla
      @divyamdembla Před 5 lety

      @@dilipds9584 binary files can be used

  • @Sudhanshusable98
    @Sudhanshusable98 Před 4 lety

    Thanks sir 🙏🙏