Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: calling new form Pin
Iain Clarke, Warrior Programmer2-Feb-09 2:02
Iain Clarke, Warrior Programmer2-Feb-09 2:02 
Questionread single line using CFile? Pin
sam_psycho1-Feb-09 19:38
sam_psycho1-Feb-09 19:38 
AnswerRe: read single line using CFile? Pin
Chandrasekharan P1-Feb-09 19:58
Chandrasekharan P1-Feb-09 19:58 
GeneralRe: read single line using CFile? Pin
sam_psycho1-Feb-09 20:07
sam_psycho1-Feb-09 20:07 
AnswerRe: read single line using CFile? Pin
Nishad S1-Feb-09 20:16
Nishad S1-Feb-09 20:16 
AnswerRe: read single line using CFile? Pin
CPallini1-Feb-09 21:34
mveCPallini1-Feb-09 21:34 
GeneralRe: read single line using CFile? Pin
sam_psycho1-Feb-09 21:40
sam_psycho1-Feb-09 21:40 
GeneralRe: read single line using CFile? Pin
sam_psycho1-Feb-09 23:02
sam_psycho1-Feb-09 23:02 
Hi,
I want to append a line to file i tried like this:
CString strNewWord (_T(" Test line to write"));
CStdioFile file;
file.Open(strSystemPath,CFile::modeWrite|CFile::modeNoTruncate,NULL);
file.SeekToEnd();
CString strWriteData("\\n ");
strWriteData+=strNewWord;
file.WriteString(strWriteData);
file.Close();
this code appends data but in single line (assume no compile time errors):

\n Test line to write\n Test line to write\n Test line to write
I want like this:

Test line to write
Test line to write
Test line to write
GeneralRe: read single line using CFile? Pin
Iain Clarke, Warrior Programmer1-Feb-09 23:13
Iain Clarke, Warrior Programmer1-Feb-09 23:13 
GeneralRe: read single line using CFile? Pin
CPallini1-Feb-09 23:51
mveCPallini1-Feb-09 23:51 
JokeRe: read single line using CFile? Pin
Iain Clarke, Warrior Programmer1-Feb-09 23:58
Iain Clarke, Warrior Programmer1-Feb-09 23:58 
JokeRe: read single line using CFile? Pin
CPallini2-Feb-09 0:23
mveCPallini2-Feb-09 0:23 
GeneralRe: read single line using CFile? Pin
Roger Stoltz2-Feb-09 1:28
Roger Stoltz2-Feb-09 1:28 
QuestionVista registry virtualisation issue when running my application Pin
hariakuthota1-Feb-09 19:08
hariakuthota1-Feb-09 19:08 
AnswerRe: Vista registry virtualisation issue when running my application Pin
«_Superman_»1-Feb-09 19:12
professional«_Superman_»1-Feb-09 19:12 
GeneralRe: Vista registry virtualisation issue when running my application Pin
hariakuthota1-Feb-09 19:16
hariakuthota1-Feb-09 19:16 
GeneralRe: Vista registry virtualisation issue when running my application Pin
«_Superman_»1-Feb-09 19:28
professional«_Superman_»1-Feb-09 19:28 
GeneralRe: Vista registry virtualisation issue when running my application Pin
hariakuthota1-Feb-09 19:31
hariakuthota1-Feb-09 19:31 
Questionmaking win32 Dll Pin
hrishiS1-Feb-09 18:07
hrishiS1-Feb-09 18:07 
AnswerRe: making win32 Dll Pin
Nishad S1-Feb-09 19:21
Nishad S1-Feb-09 19:21 
GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 19:35
hrishiS1-Feb-09 19:35 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 20:12
Nishad S1-Feb-09 20:12 
GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 20:39
hrishiS1-Feb-09 20:39 
QuestionRe: making win32 Dll Pin
Nishad S1-Feb-09 20:49
Nishad S1-Feb-09 20:49 
AnswerRe: making win32 Dll Pin
hrishiS1-Feb-09 21:21
hrishiS1-Feb-09 21:21 

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.