Write text file
Version 1.0.0.0 (1.41 KB) by
SamGhim
write_txt_file - creates a .txt file with desired information as specified by "info_str)
write_txt_file - creates a .txt file with desired information as
specified by "info_str)
function calls :
WRITE_TXT_FILE(LOGPATH,FILENAME,INFO_STR)
LOGPATH = pathname (as a string) to the folder where the file is to be saved, ex: 'C:\Desktop'
FILENAME = name of the file (as a string), ex: 'test.txt'
INFO_STR = information that you want to be written in the file, ex: a variable or a string such as 'testing file'
Cite As
SamGhim (2026). Write text file (https://ch.mathworks.com/matlabcentral/fileexchange/25933-write-text-file), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Text Files in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
