Reimplemented fgetl

This commit is contained in:
Waldir Leoncio 2020-07-31 09:26:57 +02:00
parent f036a33bca
commit 372500d750
3 changed files with 52 additions and 12 deletions

23
man/fgetl.Rd Normal file
View file

@ -0,0 +1,23 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fgetl.R
\name{fgetl}
\alias{fgetl}
\title{Read line from file, removing newline characters}
\usage{
fgetl(file)
}
\arguments{
\item{file}{character vector to be read, usually an output of `fopen()`}
}
\value{
If the file is nonempty, then fgetl returns tline as a character vector. If the file is empty and contains only the end-of-file marker, then fgetl returns tline as a numeric value -1.
}
\description{
Equivalent function to its homonymous Matlab equivalent.
}
\seealso{
fopen
}
\author{
Waldir Leoncio
}

23
man/fopen.Rd Normal file
View file

@ -0,0 +1,23 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fgetl.R
\name{fopen}
\alias{fopen}
\title{Open file}
\usage{
fopen(filename)
}
\arguments{
\item{filename}{Path and name of file to be open}
}
\value{
The same as `readLines(filename)`
}
\description{
Open a text file
}
\seealso{
fgetl
}
\author{
Waldir Leoncio
}