I can't find any methods in MQX libaries designed for file trimming. How may I manage with this task ?
Thank you
解決済! 解決策の投稿を見る。
Ok..thank you for additional information.
We do not have this function implemented in MQX. I looked at tool libraries, MQX IO and MFS without success.
Googling did find source to review for truncate: PlibC: File Index
Regards,
David
Hi Maciej,
To my knowledge there are no such commands and capabilities.
What kind of file are you trying to trim? Picture, audio, text, other?
Regards,
David
I've mechanism which controlls the size of log files and in case of extending predefined file size, causes ftruncate()/chsize() to reduce its size. Thus this is text file.
Regards,
Maciej
Ok..thank you for additional information.
We do not have this function implemented in MQX. I looked at tool libraries, MQX IO and MFS without success.
Googling did find source to review for truncate: PlibC: File Index
Regards,
David
So I need to change the logic.
Thank you for checking that.
Regards,
Maciej