I can't find any methods in MQX libaries designed for file trimming. How may I manage with this task ?
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
To my knowledge there are no such commands and capabilities.
What kind of file are you trying to trim? Picture, audio, text, other?
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.
So I need to change the logic.
Thank you for checking that.
Retrieving data ...