How to control the text format when using fileWrite()?

 
How to control the text format when using FileWrite()? e.g. add a tab between 2 words.
 
also need control the width of output string. e.g. output a string to right side(or left) in the width of 30 letters.
 
jollydragon: How to control the text format when using FileWrite()? e.g. add a tab between 2 words.
jollydragon: also need control the width of output string. e.g. output a string to right side(or left) in the width of 30 letters.
  1. Read the documentation Character Constants - MQL4 Documentation or CharToStr - MQL4 Documentation
  2. Format the string. StringFormat - MQL4 Documentation
 

Dear WHRoeder, thanks for help!

Reason: