Hi  am pavithra.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Hi  am pavithra.

1,244 次查看
pavithras
Contributor I

i am   working on mqx version 4.0.0.can we use all file functions in mqx. I am getting problem while using  fputs  function. It is working properly on linux platform  but not in mqx it is writing some junk data in to file .and  if I use fprintf or f write one extra space is coming between each character please get me the solution

Original Attachment has been moved to: ADC0.TXT.txt.zip

标签 (1)
0 项奖励
回复
1 回复

1,075 次查看
RadekS
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复