readCharSafe: readCharSafe

View source: R/conquestrFunc.R

readCharSafeR Documentation

readCharSafe

Description

reads n bytes as raw from a binary connection. Removes any embedded nuls, replacing them with replace.

Usage

readCharSafe(con, n, replace = " ")

Arguments

con

A file connection - usually a binary file.

n

The number of bytes to read.

replace

a character to replace embedded nulls with.

Value

character vector.


conquestr documentation built on March 31, 2023, 6:02 p.m.