For the complete documentation index, see llms.txt. This page is also available as Markdown.

ReadBytes

Read contents of a file as a byte array.

Task version: 1.2.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Path : String

Full path of the target file to be read.

Default: - Example: c:\temp\foo.txt

Task Result

Name
Description

ContentBytes : Byte[]

File content. Example: This is a test file.

Path : String

Full path to the file. Example: c:\temp\foo.txt

SizeInMegaBytes : Double

Size of the written file in mega bytes. Example: 32

CreationTime : DateTime

DateTime when file was created. Example: 01/31/2023 10:54:17

LastWriteTime : DateTime

DateTime for last write time of the file. Example: 02/06/2023 09:59:13

Task Changelog

Changelog for Task Frends.Files.ReadBytes.

[1.2.0] - 2026-05-08

Fixed

  • Fix documentation of result

[1.1.0] - 2025-03-19

Changed

  • Update packages: Microsoft.Extensions.FileSystemGlobbing 7.0.0 -> 9.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.DirectoryServices 7.0.0 -> 8.0.0 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 MSTest.TestAdapter 2.2.7 -> 3.8.3 MSTest.TestFramework 2.2.8 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0

[1.0.0] - 2023-04-20

Added

  • Initial implementation

Last updated

Was this helpful?