line-by-line until we read as much of the flowers we want usually the whole file and then the third thing you need to do is because you open the file you need to close the file which basically this correspondence between the object in the five is ok i'm done without file now this object is no longer referring to her father subjects kind i'm going to be done with it in order to use of this functionality i'll show you the code just a second a particular packaging each home port called job offer dot audio which stands for input output dot starts at the top your program will have an important than it has java dot just the letters audio dot starts unequal and i will give you all for the file stuff so how do we actually do one of these things are aware that we're going to put a file we're going to read its contents and we're going to close it time to write a little co if you do so first thing we're going to do is we're going to create one of our friends the buffered reader so we're going to have some objects goods are type buffered reader and this is just a class that exists in java dot audio that's why you import that packaging you're going to be able to referred object of this type so buffered reader i'll just call it rd for reader for short and what i'm gonna set that's you is a new buffered reader so this is going to be a new buffered reader and the new buffered reader needs some perimeter here is where things get funky that type of pram rates going to take it as something called eight file reader that's a special kind of object that knows how to tax itself for an actual file on disc but i need to create one of those so here is the atm_ for how i created the idiom is just sort of pattern you'll always teen programs i say new buffered reader and the primer that i passed to a new buffered reader is ennu file reader do you have pertains are new fire eater and the primer that i get a new five reader is the name of the file on the did sc so if the file on the disc is called liken this example students got text i'd actually given here as a strain students not t x t i needed space for a few extra parameters that when you write that all of this month freeman's dot key expertise at the end the strength than i have this friends close that brandon other plants closed after so what it does it says create a new file reader which basically isn't object id associates with a particular file on the disk and that object is what gets passed into a buffered reader in the buffer readers which been asked to get line-by-line series abe operator gimme anyone and it's going to go safe are reader get the line from that file and get it back and give it to you this is just the standard atm_ you always see in the way that it's written when you can put any string in here you won't mind if i could bring a string variable if you want now after you created that how do you actually read from the file so let's have a while loop the reading every line of the file so we'll have a while truly because we're going to keep reading until we reach the end of the file and the way we're in this is we're going to read the file line by line in each 