help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to read txt file and output to display


From: Kai Torben Ohlhus
Subject: Re: How to read txt file and output to display
Date: Thu, 14 Mar 2019 22:16:03 +0100

On Thu, Mar 14, 2019 at 9:45 PM sb <address@hidden> wrote:
I have a txt file which includes a help text for a program that I am trying
to write.
I want to display its contents to the display (i.e. read from txt file and
flush its content to the display) when selected from a menu.
I couldn't find the exact command to do this (if any)?
Most of the commands refer to reading data with delimiters. I want to read
from a simple txt file which includes text (any length and any number of
lines).
Is this possible?


Sure, did you try https://octave.org/doc/v5.1.0/XREFfileread.html ?

>> str = fileread ("simple.txt"); 

HTH,
Kai


reply via email to

[Prev in Thread] Current Thread [Next in Thread]