This is my code:
char text1 = "\nhello\n testtesttesttesttesttesttesttesttesttesttesttesttest\n"; char Number = 250; f_open(&Test, "random.txt", FA_CREATE_ALWAYS | FA_WRITE); f_write(&Test, text1,sizeof(text1) , &bw); f_write(&Test, "\n",1 , &bw); f_write(&Test, Number, 8, &bw); f_close(&Test);
and the result is in the picture. :(
What is messing up the file?
I just want: Text and then write a number to the file, nothing more.
Do you have any ideas?
p.s. read the file with notepad++. With windowseditor, neither NUL, nor the breaks are displayed.