My file: "c:/note.txt", has 3 lines: test odczytywania pliku test odczytywania pliku test odczytywania pliku But my output is: c:/note.txt test odczytywania pliku null Below, this commented code work fine but didn't pass the task, and I don't know why. It is a modified copy of example from crazy professor pasta noodles.