24/7 Support: 800.608.6482

file_read_bytes

MvDo Function, MVT, Miva 9+, Engine v5.22+

Tag / Description

file_read_bytes( path, location, offset, length, data )

<mvt:assign name="g.return_value" value="file_read_bytes( path, location, offset, length, data )" />

Reads a portion of the file specified by "path" and "location" into "data". Returns the number of bytes read, which may be less than "length", if an attempt was made to read past the end of the file, or -1 on error.

Parameters

Return Values

Examples

Looking for Developer Docs?

We have a whole section for that, including: Developer Training Series, Template Language docs, Module Development tutorials and much, much more.

Head to the Developer Section

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay Vault®, Camp Miva®, Miva Connect®, Vexture℠, Miva, Inc. All Rights Reserved.