Télécharger Imprimer la page

Yoctopuce YoctoHub-Wireless-g Mode D'emploi page 220

Publicité

11. Référence de l'API de haut niveau
files→download()
Télécharge le fichier choisi du filesystème et retourne son contenu.
function download( pathname)
js
string download( string pathname)
cpp
-(NSMutableData*) download : (NSString*)
m
function download( pathname: string): TByteArray
pas
function download( ) As Byte
vb
byte[] download( string pathname)
cs
byte[] download( String pathname)
java
async Task<byte[]> download( string pathname)
uwp
download( pathname)
py
function download( $pathname)
php
async download( pathname)
es
YFiles
target
download
cmd
Paramètres :
pathname
nom complet du fichier à charger, y compris le chemin d'accès.
Retourne :
le contenu du fichier chargé sous forme d'objet binaire
En cas d'erreur, déclenche une exception ou retourne un contenu vide.
216
pathname
pathname
YFiles
www.yoctopuce.com

Publicité

loading