Skip to content

AmpyWrapper.Ampy.GetFileContent(string)

Finnomator edited this page Aug 3, 2023 · 2 revisions

Ampy.GetFileContent(string) Method

Retrieve a file from the board.

public System.Threading.Tasks.Task<AmpyWrapper.AmpyOutput> GetFileContent(string remoteFile);

Parameters

remoteFile System.String

Path to the file on the board.

Returns

System.Threading.Tasks.Task<AmpyWrapper.AmpyOutput>
AmpyOutput that contains the file content.

Example

string fileContent = await GetFileContent("main.py");  

Clone this wiki locally