Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Please don't trust me: from the same article:

To facilitate the creation of portable programs, programming languages provide some abstractions to deal with the different types of newline sequences used in different environments.

The C programming language provides the escape sequences '\n' (newline) and '\r' (carriage return). However, these are not required to be equivalent to the ASCII LF and CR control characters. The C standard only guarantees two things:

1. Each of these escape sequences maps to a unique implementation-defined number that can be stored in a single char value.
2. When writing a file in text mode, '\n' is transparently translated to the native newline sequence used by the system, which may be longer than one character. (Note that a C implementation is allowed not to store newline characters in files. For example, the lines of a text file could be stored as rows of a SQL table or as fixed-length records.) When reading in text mode, the native newline sequence is translated back to '\n'. In binary mode, the second mode of I/O supported by the C library, no translation is performed, and the internal representation of any escape sequence is output directly.

Big Grin | :-D

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

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 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 21:50
Nishad S1-Feb-09 21:50 
GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 22:52
hrishiS1-Feb-09 22:52 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 22:57
Nishad S1-Feb-09 22:57 
GeneralRe: making win32 Dll [modified] Pin
hrishiS1-Feb-09 23:12
hrishiS1-Feb-09 23:12 

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.