Problem reading data in sd card.

PaulS:
You open the file in setup(), read everything in the file and print it to the serial port. Then, you close the file.

Then, in loop(), you try to read from a file that is not opened. How can you expect that to work?

Hello PaulS,
i'm very new with the sd programming, so that i could just delete the line for closing the file and it should be work or is it another alternative way to make the code work?