Yoctopuce YoctoHub-Ethernet Mode D'emploi page 220

Table des Matières

Publicité

10. 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
TByteArray download( pathname: string): TByteArray
pas
function download( ByVal
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: string): Promise<Uint8Array>
ts
async download( pathname)
es
byte[] download( string pathname)
dnp
string download( string pathname)
cp
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
As String) As Byte
pathname
YFiles
www.yoctopuce.com

Publicité

Table des Matières
loading

Table des Matières