Yes I meant a File object. Both open for write and open for read take the same amount of memory.
File file;
// other code
file = SD.open("test.txt", FILE_WRITE); // calls malloc to allocate memory
// access file here
file.close(); // calls free to release memory