MohamedSabthar / file

Home Page:https://central.ballerina.io/crates/file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The File module

This module provides an API that enables reading a file as a byte array by specifying a start byte index and size, along with the file path. With this functionality, you can precisely extract a specific range of bytes from the file, converting it into a convenient byte array format.

Example

The following example shows how to read a file as a byte array by specifying a start byte index and size, along with the file path.

    byte[] actual = check read("file.txt", 10,14);

About

https://central.ballerina.io/crates/file


Languages

Language:Java 50.4%Language:Ballerina 49.6%