Switch to desktop version  
CRC16 on whole file / Start-Value for CRC-16 - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: CRC16 on whole file / Start-Value for CRC-16 (/thread-1145.html)



CRC16 on whole file / Start-Value for CRC-16 - KarlheinzMeier - 16-01-2020

Hello.

We are using a Script to backup the daily data on an SD-Card in case of Internet loss.
I would now like to calculate the CRC16 of this file within Basic ans save it into a Tag.

My File is around 6 MB.
Can I simply open the file and use the Built-In CRC-Routine on that ?

Normally I would read each line and use the CRC-16-Value of the last line as Initial Value for the next line.
Is this possible ?


Kind Regards
Karlheinz Meier