Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

ARM: How to truncate a file ?

$
0
0
We are using Keil 5.22 and RTL library on a LPC1768 board on which we have an SD card interface. All the usual file access works, fopen(), fprintf(), fdelete(), frename() etc... However I can't find anything like ftruncate() or chsize(). I want to be able to reduce the size of a file to remove fixed length data records from the end of it. Is there a way to do this with the Keil Library ? I could do it by reading the file into new file and then deleting and renaming

Viewing all articles
Browse latest Browse all 3049

Trending Articles