My system using AM335X with the Linux running inside.
During my application, I need to write the data to the SD card with the command: echo "string" > /var/conf/1.ini, then send the command "sync" , then i cat this file with the command: cat /var/conf/1,ini, at last I power off the system directly.
my question is :
1) Will the 1.ini file have the possibility to be corrupted if send the cat command after sync command?
2) I cat the file after sync command, then i power off the system directly, the 1.ini file have the possibility to be corrupted?