write&read sd like fstream

in c++, we usually write file like this:

int int_1=1;
int int_2=2;
int int_3=3;
int int_4=4;
ofstream ofile;
ofile.open("file.txt")
ofile<<int_1<<" "<<int_2<<"    "<<int_3<<endl;
ofile<<int_4;
ofile.close;

and read file like this:

int a,b,c,d;
ifstream ifile;
ifile.open("file.txt")
ifile>>a>>b>>c>>d;  
/*reading file in order no matter whether the space between the variable is created by space/tab/new line. a=1, b=2, c=3, d=4*/

is there any library that can write/read txt file in sd card like fstream in c++?
for example like:
osdfstream ofile //for writing or
isdfstream ifile //for reading
because i already make save/load system in c++, and now i want to try that save system in arduino to make some project

only write. if should work on File of SD library. File class implements Print class

cool, ill try it, thank you so much

other one