sd with serial communication, how do?

hi
I want read end write a SD card with serial communication, arduino use SPI only, see file attachment

this is the sketch

#include <SoftwareSerial.h>
SoftwareSerial mySerial(5,4);// pin 5 RX pin 4 TX
#include <String.h>

void setup()  
{
  Serial.begin(9600);  // set the data rate for the Serial port
    mySerial.begin(9600);  // set the data rate for the SoftwareSerial port
  delay(50);
  Serial.println("Goodnight moon!");
/*
mySerial.print("baud 9600 \r\n");
   delay(50);
    if (mySerial.available())
    {
    Serial.println(mySerial.read());
    } 
    */
   mySerial.println("mode /m");
   delay(50);
    while (mySerial.available())
    {
    Serial.println(mySerial.read());
    }
   mySerial.println("init");
 delay(50);
 
 while(mySerial.available())
  {
    Serial.println(mySerial.read());
  }  
}
 


void loop() 
{  
  mySerial.print("fcreate test.txt\r\n");
  delay(50);
  
 while(mySerial.available())
  {
    Serial.println(mySerial.read());
  } 
 
  while(true){}
}

and this is the output

Goodnight moon!
62
77
111
100
101
58
32
77
67
85
40
115
105
109
112
108
101
32
109
101
115
115
97
103
101
41
13
10
79
79

test.txt file is created but the output not match output datasheet

stefano

SD_UserManual.pdf (799 KB)