Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File Type Extensions Pin
maycockt16-Mar-10 4:06
maycockt16-Mar-10 4:06 
AnswerRe: File Type Extensions Pin
Avi Berger16-Mar-10 5:13
Avi Berger16-Mar-10 5:13 
Questionhow to read data from wav file and use of fft Pin
arvindrawat11115-Mar-10 4:43
arvindrawat11115-Mar-10 4:43 
AnswerRe: how to read data from wav file and use of fft Pin
CPallini15-Mar-10 8:11
mveCPallini15-Mar-10 8:11 
QuestionHow to add blank spaces in line while file writing? Pin
Abhijit D. Babar15-Mar-10 3:25
Abhijit D. Babar15-Mar-10 3:25 
AnswerRe: How to add blank spaces in line while file writing? Pin
Richard MacCutchan15-Mar-10 3:50
mveRichard MacCutchan15-Mar-10 3:50 
AnswerRe: How to add blank spaces in line while file writing? Pin
Rajesh R Subramanian15-Mar-10 4:09
professionalRajesh R Subramanian15-Mar-10 4:09 
AnswerRe: How to add blank spaces in line while file writing? Pin
LouisLewis15-Mar-10 11:32
LouisLewis15-Mar-10 11:32 
Hi There,

You could do this in one or more ways.
One way is to us the \t escape routine. Which works a little like this:

Somefile << "Some text to write to file\t";

That would add one tab space after the word file. So you could add a couple of \t escapes.
or use formatting functions instead. one example thereof is:

printf ("Width trick: %*d \n", 5, 10);

You would just have to figure out which is best for you.
Though printf() is routed to the console by default, you could use it or its counterparts to route to a file
object instead.

Hope this helps

Louis
QuestionSending KeyStroke Pin
S p k 52115-Mar-10 1:21
S p k 52115-Mar-10 1:21 
AnswerRe: Sending KeyStroke Pin
ThatsAlok15-Mar-10 1:53
ThatsAlok15-Mar-10 1:53 
AnswerRe: Sending KeyStroke Pin
Rajesh R Subramanian15-Mar-10 2:05
professionalRajesh R Subramanian15-Mar-10 2:05 
QuestionRe: Sending KeyStroke Pin
David Crow15-Mar-10 6:05
David Crow15-Mar-10 6:05 
QuestionCAsyncSocket - socket error Pin
diptipanchal15-Mar-10 0:33
diptipanchal15-Mar-10 0:33 
AnswerRe: CAsyncSocket - socket error Pin
Rozis15-Mar-10 2:58
Rozis15-Mar-10 2:58 
AnswerRe: CAsyncSocket - socket error Pin
Moak15-Mar-10 4:05
Moak15-Mar-10 4:05 
QuestionRemove text from image Pin
Game-point14-Mar-10 22:39
Game-point14-Mar-10 22:39 
QuestionHow to read clsid from registry in MFC Pin
rahul.kulshreshtha14-Mar-10 22:35
rahul.kulshreshtha14-Mar-10 22:35 
AnswerRe: How to read clsid from registry in MFC Pin
«_Superman_»14-Mar-10 23:11
professional«_Superman_»14-Mar-10 23:11 
GeneralRe: How to read clsid from registry in MFC Pin
rahul.kulshreshtha15-Mar-10 1:14
rahul.kulshreshtha15-Mar-10 1:14 
Questionoffice viewer component! help me! Pin
sy111114-Mar-10 21:35
sy111114-Mar-10 21:35 
AnswerRe: office viewer component! help me! Pin
ThatsAlok15-Mar-10 1:51
ThatsAlok15-Mar-10 1:51 
QuestionReading from a .ini file Pin
jannathali14-Mar-10 21:09
jannathali14-Mar-10 21:09 
AnswerRe: Reading from a .ini file Pin
CPallini14-Mar-10 21:16
mveCPallini14-Mar-10 21:16 
AnswerRe: Reading from a .ini file Pin
SandipG 14-Mar-10 21:39
SandipG 14-Mar-10 21:39 
GeneralRe: Reading from a .ini file Pin
jannathali14-Mar-10 22:09
jannathali14-Mar-10 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.