Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20563

AVR-DOS : Name "oldname" As "newname" : NEWTOPIC

$
0
0
Hello AVR-DOS users, I have a couple off questions. 1. I have seen in this forum the method of renaming a file by using Name "old" as "new". Where is this function referenced and how would I ever know it exists without seeing it in this forum? I searched Bascom help. I searched all documentation I received with AVR-DOS. I see no reference to "NAME" anywhere. If it is documented and I missed it, I apologize please tell me where it is located. It makes me wonder what else is not documented or very well hidden that may be useful when using AVR-DOS. 2. Let's say I would like to keep a file size limit to 1000 bytes and after writing or appending to the file I see the file size is larger than my limit size. Is there a simple way to open that file and write EOF marker at a particular location in the file? Or maybe there is a way to delete data in the file from a certain point all the way to the end of the file? I know I could read byte by byte and write to a new file byte by byte while counting the bites until I reach the byte limit then close the new file, delete the old file, then rename the new file to the old file. It seems like there should be a better solution. Any help would be greatly appreciated. Thanks, Jerry

Viewing all articles
Browse latest Browse all 20563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>