That is strange. I tested it at MQX4.0.2.2 and it works correctly.
I didn’t discover any issue in case of fputs() function and I didn’t found any change of this function in documentation.
I used mfs_usb example add here short code:
MQX_FILE_PTR in_fd=NULL;
in_fd = fopen("c:TE123", "w+");
fputs("123This is c programming.123", in_fd);
fputs("123This is a system programming language.123", in_fd);
fclose(in_fd);
content of TE123 file was: “123This is c programming.123123This is a system programming language.123”
Could you please share here your code that we could try figure out what is wrong?
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------