Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Read a comment block embedding data details
Login with GitLab

Read a comment block embedding data

Read comment blocks of data embedded in the current script or in a given file
(1966 downloads for this version - 1966 downloads for all versions)
Details
Version
1.0
Author
Samuel GOUGEON
Owner Organization
Le Mans Université
Maintainer
S G
Category
License
Creation Date
May 29, 2023
Source created on
Scilab 2023.1.x
Binaries available on
Scilab 6.0.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit macOS
Scilab 6.1.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit macOS
Scilab 2023.0.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit macOS
Install command
--> atomsInstall("read_datablock")
Description
            
read_datablock() reads any comment block of data embedded in the currently
running or edited script or in a given file.

Such an all-in-one script.sce file contains
* Scilab instructions, usually at the head of the script.sce file
* multiline comment blocks /* ... */ containing data that you wish
  to read and use in the instructions.

This solution is very portable:

* Data do not need to be stored in any separate external files. Thus, the
script.sce file can be distributed as is to work. No need to build a zip archive
bundling the script and data files together.

* There is no path of external data files to manage in the script. You
don't even have to provide the path of your script.sce file to read the
data.

* Processing instructions and (possibly bulky) data can be clearly separated,
remaining in the same file. This avoids obfuscating the code with data.

* The script.sce file can be printed out in one go, to document your work.

User manual (PDF)
-----------------
English: https://atoms.scilab.org/toolboxes/read_datablock/1.0/files/read_datablock.pdf
            
Files (5)
[170.47 kB]
Miscellaneous file
User manual (PDF)
[11.52 kB]
Source code archive

[189.37 kB]
OS-independent binary for Scilab 2023.0.x

[189.37 kB]
OS-independent binary for Scilab 6.0.x

[189.37 kB]
OS-independent binary for Scilab 6.1.x

News (0)
Comments (0)
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.