Check content of file

can i get the code using While loop?