OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

filelog

Contents

Brief Information

Create a .txt file that contains notes or records of the user's work through a string.

Command Line Usage

1. filelog str:="Part 1 has been done.";

2. filelog str:="Start to test Part 2." newline:=1;

3. filelog str:="Begining" fname:=test path:=C:\ clear:=1;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Information str

Input

string

The variable specifies the input for the log file.
File Name fname

Input

string

LogFile.txt
This variable specifies the name of the file. The default name is LogFile.txt
File Path path

Input

string

This variable specifies the path of the file.
Add New Line at First newline

Input

int

0
Whether or not add a blank line at first. The default setting is not adding new line.
Clear Log File Data clear

Input

int

0
Specifies whether or not to clear the log file. The default setting is not clearing this file.

Description

This X-function can be used to create a .txt file that contains notes or records of the user's work through a string.

Related X-Functions