Modifications

Sauter à la navigation Sauter à la recherche
326 octets ajoutés ,  7 mars 2022 à 00:26
Ligne 24 : Ligne 24 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
The ''''a'''' parameter in the {{fname|open()}} call stand for "append". So executing several time the code will append the same text again and again to the file.
+
Notes:
 +
* The ''''a'''' parameter in the {{fname|open()}} call stand for "append". So executing several times the code will append the same text again and again to the file.
 +
* IF the file doesn't exists yet THEN it will be automatically created.
 +
* Use the ''''w'''' parameter (instead of 'a') to overwrite the file content.
   −
Of the file doesn't exists yet, it will be created.
+
The following screen capture do show the 'file.txt' on the pico file system (do not hesitate to refresh the file list) and the file content is displayed on the file pane.
 +
 
 +
[[Fichier:ENG-CANSAT-PICO-LOG-10.png|480px]]
    
{{ENG-CANSAT-PICO-TRAILER}}
 
{{ENG-CANSAT-PICO-TRAILER}}
29 917

modifications

Menu de navigation