|
From: Jorge A. <jab...@ma...> - 2003-07-03 11:02:45
|
Hi,
I wrote this piece of code willing that the numbers be written in different lines. However, the linefeed does not work. Any hint?
///
...
#define <stdio.h>
...
hFile = CreateFile(szFileName, GENERIC_WRITE, 0, 0,
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
for (loop=0;loop<Number_of_Points;loop++)
{
DWORD dWritten;
sprintf (temp,"%3d\n\r",ran1[loop]);
WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
}
/////
Thanks a lot
JEA
|