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 ?
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.
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
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
i have a question, so after watching both ways ,which is better to use as a programmer FileOutputStream , FileInputStream OR BufferedWriter ,BufferedReader?
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; } }
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
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
Sir,your videos are a kind of inspiration !
Best explaination seen till now
nyc tutorials sir, pls make some videos on android and python as well for software engineers
awesome tutorial
Thanx Sir.
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 ?
vo matlab same hi hai in dono ka , logically
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.
FileInputStream in=new FileInputStream("file path");
Your teaching is awesome sir❤
best from pakistan
wow genius idea to make buffer
nice explaination sir
Great video sir
Thanks
Confusion clear now
very very nice sir
Sir,nice video
Thanks sir
Sir in the while loop the read() pointer is not increment so how is it able to print the * next * character
thank you sir ji
very nice video
thnk u sir
very good sid
I like it..... Very good
awesome Explanation. thank you very much sir. 1 question: how can we refresh (clear) Buffer ?
fflush function
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
No, it is like a generator. Every time it is called it automatically goes to the next line.
readLine is already defined, the thing you are talking about is defined in it, you just need to call that method.
aapne Reader aur Writer class ke baare me batana chahiye tha !
Beautiful explanation
Sir pleezz buffered reader thoda or easy tarike se possible hoga to pleezz bataiye
Sir how to use read(char cbuf[], int off, int len) to coy the entire content into the char array?
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
Thank you .
i have a question, so after watching both ways ,which is better to use as a programmer FileOutputStream , FileInputStream OR BufferedWriter ,BufferedReader?
Buffered is preferable because it uses BUFFER which helps in fast retrieving and storing of data
What if we try to read an image file or video file?
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?
Thnq sir
Super sir
Nice sir g !
Agr humay 4,5 line read karni ho to kyaa karay gay sir
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;
}
}
sir
Sir! If i want to write some text in another line that means I want a new line for writing
Can it will possible ?
use "
"
@@wahabafridi4648 it is not working right
You can try it once
why do we use close()?
can u please explain it in more easily way
Sir how the array variables are blank.
I mean it should contain some garbage value?
In java...there is no garbage value...
Either blank or default value
Sir string class ka object toh banaya hi nahi sirf reference variable bnaya hai
sir can we use for loop instead of do while loop
for(;br!=null;)
@@sharjeelmughal3009 how ?
Sir, is program ko NetBeans pr kese kare
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
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
Please make a video on StringTokenizer class in java.
Why we use. txt with file name
dilipds9584 .txt is a file extension which stands for text file format.. Here we are making a text data file for storing our data..
Rahul Agrawal thnx, can we also use other file extension?
@@dilipds9584 binary files can be used
Thanks sir 🙏🙏