How to create txt file in d partition

 
How to create txt file in d partition instead of Terminal 
 
sam turkey :


Only with WinAPI.

 
Thanx . Do you have an example or link for that