Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Zac Howland14-Sep-06 7:41
Zac Howland14-Sep-06 7:41 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 8:24
Mark_Murphy14-Sep-06 8:24 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Zac Howland14-Sep-06 9:05
Zac Howland14-Sep-06 9:05 
AnswerRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Eric Dahlvang14-Sep-06 8:20
Eric Dahlvang14-Sep-06 8:20 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 8:29
Mark_Murphy14-Sep-06 8:29 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 9:09
Mark_Murphy14-Sep-06 9:09 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Eric Dahlvang14-Sep-06 9:20
Eric Dahlvang14-Sep-06 9:20 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 9:36
Mark_Murphy14-Sep-06 9:36 
EricDV

Quick question with your code.

char yy[100];
ifstream myfile("c:/out.txt");
cout<< "\nAll names entered on file: \t";
while (!myfile.eof())
{
myfile.getline(yy,100, 'n');
cout << yy;
}
In the following line:

myfile.getline(yy,100, 'n');

When i enter a name beginning with the letter "n" like nigel on the console it saves as "nigel" no problems to my text file, but when i display the contents of the text file back into the console it seems to ignore the "n" and output is displayed as "igel". It seems like it is acting as an ignore function. Any ideas why or how to solve it.

Cheers

I really hate this darn machine;
I wish that they would sell it.
It won't do what I want it to,
but only what I tell it.
~Author Unknown

GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Zac Howland14-Sep-06 9:39
Zac Howland14-Sep-06 9:39 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 10:05
Mark_Murphy14-Sep-06 10:05 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Eric Dahlvang14-Sep-06 10:29
Eric Dahlvang14-Sep-06 10:29 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 11:45
Mark_Murphy14-Sep-06 11:45 
QuestionMiltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 5:55
mostafa_pasha14-Sep-06 5:55 
AnswerRe: Miltiple CDocument & handle massage! Pin
Jun Du14-Sep-06 7:06
Jun Du14-Sep-06 7:06 
GeneralRe: Miltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 8:58
mostafa_pasha14-Sep-06 8:58 
AnswerRe: Miltiple CDocument & handle massage! Pin
Sam Hobbs14-Sep-06 7:52
Sam Hobbs14-Sep-06 7:52 
AnswerRe: Miltiple CDocument & handle massage! Pin
PJ Arends14-Sep-06 8:39
professionalPJ Arends14-Sep-06 8:39 
GeneralRe: Miltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 12:38
mostafa_pasha14-Sep-06 12:38 
QuestionConver 2005 to 2003 Pin
Matthew R. Miller14-Sep-06 5:39
Matthew R. Miller14-Sep-06 5:39 
AnswerRe: Conver 2005 to 2003 Pin
Joe Woodbury14-Sep-06 7:10
professionalJoe Woodbury14-Sep-06 7:10 
QuestionSurround Mixer Pin
lkm98514-Sep-06 5:18
lkm98514-Sep-06 5:18 
QuestionDynamic funtion calls from DLLs [modified] Pin
DanielRehn14-Sep-06 4:43
DanielRehn14-Sep-06 4:43 
AnswerRe: Dynamic funtion calls from DLLs Pin
ThatsAlok14-Sep-06 21:17
ThatsAlok14-Sep-06 21:17 
GeneralRe: Dynamic funtion calls from DLLs Pin
DanielRehn14-Sep-06 21:44
DanielRehn14-Sep-06 21:44 
Questionsubclassing Pin
Waldermort14-Sep-06 4:41
Waldermort14-Sep-06 4:41 

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.