text writing to files | developer.brewmp.com text writing to files | developer.brewmp.com

Developer

text writing to files

Forums:

I have a problem regarding the printing of the text to file
i want that after i write some thing it will come to the next line in my text file
For ex.
Abc
def
ghidfdf
sdsdsds
sdsdsds

Hi,
Try this
const char *str1[] = "abc";
const char *str2[] = "def";
.
.
.
IFILE_Write(pIFile, (void *) str1,STRLEN(str1));
IFILE_Write(pIFile, (void *)"\n", 1);
IFILE_Write(pIFile, (void *)str2,STRLEN(str2));
Note:
First You have to create pIFile object using IFileMgr

Hi,
Try this
const char *str1[] = "abc";
const char *str2[] = "def";
.
.
.
IFILE_Write(pIFile, (void *) str1,STRLEN(str1));
IFILE_Write(pIFile, (void *)"\n", 1);
IFILE_Write(pIFile, (void *)str2,STRLEN(str2));
Note:
First You have to create pIFile object using IFileMgr

Hi,
Try this
const char *str1[] = "abc";
const char *str2[] = "def";
.
.
.
IFILE_Write(pIFile, (void *) str1,STRLEN(str1));
IFILE_Write(pIFile, (void *)"\n", 1);
IFILE_Write(pIFile, (void *)str2,STRLEN(str2));
Note:
First You have to create pIFile object using IFileMgr
Regards,
V.Raja

Hi,
Try this
const char *str1[] = "abc";
const char *str2[] = "def";
.
.
.
IFILE_Write(pIFile, (void *) str1,STRLEN(str1));
IFILE_Write(pIFile, (void *)"\n", 1);
IFILE_Write(pIFile, (void *)str2,STRLEN(str2));
Note:
First You have to create pIFile object using IFileMgr
Regards,
V.Raja

after writing a line to the file use
IFILE_Write( pIFile, (const void*)"\r\n", STRLEN("\r\n") );

after writing a line to the file use
IFILE_Write( pIFile, (const void*)"\r\n", STRLEN("\r\n") );