REBOL Library REBOL

File I/O Related

Updated: 29-May-2003

Return to main library index

Download Web Page

webget.r

20-May-1999

Fetch a web page and save it as a file.

1 line

217 bytes

 
Convert Line Terminators

reline.r

4-Jun-1998

Convert all line terminators to those used by the local computer. Works for PC, Mac, Unix, Amiga, and all others

2 lines

367 bytes

 
Search a Web Page

webfind.r

20-May-1999

Search a web page for a string, and save the page to a file if it was found

2 lines

310 bytes

 
ConsoleIO

consoleio.r

1-Aug-2002

Console prompt output save,saves all console input to history.log file when in console mode.

2 lines

527 bytes

 
Encoding Binary Data in REBOL Scripts

bin-save.r

30-May-2000

Example of how to save base-64 encoded binary data in REBOL scripts. (See bin-data.r as an example of how to decode the data.)

3 lines

396 bytes

 
Email a Text File

mailfile.r

10-Sep-1999

Send a text file (as text of message).

4 lines

366 bytes

 
Comma-Seperated-Values to REBOL converter

convert-csv.r

16-Jun-1999

Convert CSV files to REBOL blocks

5 lines

529 bytes

 
Download List of Files

ftpdown.r

26-May-1999

Download a list of binary files using FTP.

5 lines

335 bytes

 
Upload Several Files

ftpupload.r

26-May-1999

Upload multiple files with FTP using login and password.

5 lines

340 bytes

 
Save Email to File

mailsave.r

10-Sep-1999

This example reads all email and saves it to a file.

5 lines

500 bytes

 
Transfer REBOL Files to Server

ftpallto.r

18-Dec-1997

FTP all .r files in the current directory to a server.

7 lines

386 bytes

 
Total Size of .r Files

sizedir.r

24-Apr-1999

Print the total size of all .r files in the current directory.

7 lines

352 bytes

 
Download Multiple Pages

webgetter.r

20-May-1999

Fetch several web pages and save them as local files.

7 lines

336 bytes

 
Upload all HTML Files

ftphtml.r

26-May-1999

Upload a group of files to an FTP server.

8 lines

397 bytes

 
Find Invalid Chars

findchars.r

4-Jun-1998

Finds odd unprintable ASCII characters in a file

9 lines

476 bytes

 
Email Text Files

mailfiles.r

10-Sep-1999

This example sends a group of text files as separate messages.

9 lines

558 bytes

 
Search Multiple Web Pages

webfinder.r

20-May-1999

Search multiple web pages for a string, and print the URL of the ones where it was found.

9 lines

429 bytes

 
File Compress and Decompress

compress.r

16-May-2001

An example file compression utility.

9 lines

604 bytes

 
Interactive FTP Downloader

ftpdownload.r

26-May-1999

Download a group of files from an FTP server, prompting for each file along the way.

10 lines

513 bytes

 
Web Page Change Detector

webcheck.r

20-May-1999

Determine if a web page has changed since it was last checked, and if it has, send the new page via email.

10 lines

500 bytes

 
Get All Library Scripts

weblib.r

20-May-1999

Downloads all scripts from the REBOL script library

10 lines

543 bytes

 
Search Web Pages

findweb.r

18-Dec-1997

Simple example of searching multiple web pages for a specified string.

13 lines

534 bytes

 
Include Files

include.r

5-Nov-1997

A useful function for "including" a single file or a block of files. Web and other file paths are allowed.

13 lines

680 bytes

 
REBOL Random Password Generator

rand-pass.r

16-Jun-1999

To use the system password file to generate a random set of passwords for every user on the system.

13 lines

842 bytes

 
Untitled

showtree.r

15-Jan-2003

ShowTree is a dir-tree like, easy to use. GPL script !

14 lines

718 bytes

 
Parse REBOL Source - Recent!

parse-code.r

29-May-2003

An example of how to parse REBOL source code.

15 lines

745 bytes

 
mp3tool

mp3tool.r

15-May-2002

I have seen an ID3 reader in every language (C, Perl, Python, PHP), and decided I might as well write one for REBOL. It is very simplistic at the moment

17 lines

1217 bytes

 
Email Files as Compressed

mailfilescomp.r

10-Sep-1999

This example sends a group of files (binary or text) as a single compressed text message.

18 lines

869 bytes

 
Image Slicer

slice.r

20-Nov-2001

Slices an image into a set of sub-images and stores each as a local PNG file under its own name.

19 lines

882 bytes

 
Delete-Dir

delete-dir.r

3-Jul-2002

Deletes the specified files(s) or directory.

19 lines

792 bytes

 
Sort Library Files by Category

sort-lib-files.r

2-Jun-2000

Copies REBOL script library files into subdirectories under the primary categories.

20 lines

922 bytes

 
msdate-to-date

msdate-to-date.r

3-Dec-2001

Converts standard MS DOS binary time to Rebol's one

20 lines

959 bytes

 
Diff compare

diff.r

20-Jul-1999

See the differences between two files. Only provides basic DIFF functionality. Shows lines which don't exist in other file.

21 lines

986 bytes

 
Save to Mailbox File

mailboxsave.r

10-Sep-1999

This example reads email and appends it to a standard mailbox file (which can be read by most email apps).

23 lines

1186 bytes

 
dir-tree

dir-tree.r

20-Jun-1999

Recursively build a rebol and human readable tree from a directory or a ftp site. Maximum depth can be set.

26 lines

1651 bytes

 
Cookie Cleaner

cookies.r

18-Jul-2001

Removes unwanted cookie files from windows system.. note files are permanently deleted! can be used to search and clean files from any folder. Just change line that reads (files: read %/c/windows/cookies/) to something like (files: read %/c/windows/temp).Type .txt at the search prompt and search for all text files in temp folder. Script is run from the folder you wish to clean. Just started writing scripts haven't got the path thing down yet.

26 lines

1887 bytes

 
Autoextracting REBOL file creator

autoextract.r

16-Jun-1999

Send files via email which can be decompressed simply by executing the contents of the message when it is received.

28 lines

1370 bytes

 
Delete Files by Suffix

delete-suffix.r

7-Jul-2000

Delete files based on their suffixes. Can also delete deeply through all subdirectories.

28 lines

1596 bytes

 
Text File Viewer

text-view.r

31-May-2001

A simple scrolling text file viewer. (Updated from 20-May-2000 version.)

31 lines

1292 bytes

 
Checklister (HTML)

checklist.r

15-Sep-1999

Creates a checklist in HTML from a text file.

34 lines

1770 bytes

 
Melt

melt.r

3-Jul-2002

Melts object ice into fluid Rebol script.

34 lines

1344 bytes

 
REBOL Script Cleaner - Recent!

clean-script.r

29-May-2003

Cleans REBOL scripts by parsing the REBOL code and supplying standard indentation and spacing.

36 lines

2134 bytes

 
Text to HTML Converter

texthtml.r

29-Feb-2000

A useful doc formatting language. Converts text to HTML with titles, sections, sub-sections, and code. Is used to create all REBOL How-to documents.

36 lines

2296 bytes

 
Download and Extract REBOL Library

copy-lib.r

28-May-2001

Download REBOL library and extract all its files.

37 lines

1476 bytes

 
Build a Program Package

build-pack.r

6-Jul-2001

Creates a single compressed REBOL program from a list of file modules. Modules can include binary data files such as images.

38 lines

1988 bytes

 
X ls -R

xlsr.r

30-Sep-2002

Provide a template to eXectute a function on all files found recursively from a directory.

40 lines

2037 bytes

 
File Encryption and Decryption Utility

crypt.r

29-Jun-2001

An example utility that encrypts and decrypts files using a highly secure form of encryption (the Blowfish algorithm with 128 bits). Requires REBOL/View/Pro or REBOL/Command to run.

43 lines

1791 bytes

 
Replace-in-all-files

replace-in-all-files.r

12-Jul-2001

To do recursive replace in all files in the directory

44 lines

1851 bytes

 
En-/decryption Functions

encrypt.r

20-Jul-1999

A basic encryption scheme.

48 lines

2038 bytes

 
Save email attachments to disk

detach.r

9-Jun-1999

Detach mail attachments

50 lines

2236 bytes

 
navigator

navigator.r

13-Aug-2002

to navigate throw files, next versions will include web and ftp navigation

58 lines

1908 bytes

 
XPM parser

xpm.r

26-Mar-2002

Convert XPM image file to rebol image! datatype

59 lines

2091 bytes

 
Freeze

freeze.r

3-Jul-2002

Freezes an object sea.

62 lines

2316 bytes

 
Email attachments

attach.r

20-Jul-1999

Send email with base64 encoded attachments

67 lines

2521 bytes

 
RIP - Standard File Archiver

rip.r

23-Jun-2000

A file archiver that works across 37 platforms. Compresses all files and subdirectories into a single binary, self-extracting archive file. (Similar to ZIP programs, but only 3KB.)

72 lines

3299 bytes

 
CGI Comment Article

webcomment.r

14-Sep-1999

Run this to create the file used for the cgicomment.r script.

72 lines

2795 bytes

 
Example Text Document

textdoc.r

5-Jun-1999

Creates an example for text-to-html doc language. Shows how natural and readable it is -- the reason we prefer it for writing our how-to documentation.

75 lines

2762 bytes

 
Color REBOL Code in HTML - Recent!

color-code.r

29-May-2003

Colorize source code based on datatype. Result is HTML. This script is used to syntax color the library scripts.

78 lines

3189 bytes

 
Directory Mapper

dir-mapper.r

18-Jul-2001

Recursively builds a dir-structure map of the directory with file/dir informations as size and dates

92 lines

4994 bytes

 
ico-parser

ico-parser.r

31-Jul-2001

To get data from the windows *.ico files

95 lines

5403 bytes

 
Condense Data

condense.r

18-Feb-2002

Provide a series of functions for aggregating data. Specifically designed for taking daily stock data and condensing it into weekly or monthly data series, but flexible enough for most data aggregation tasks.

97 lines

5310 bytes

 
RebProcessor

rebprocessor.r

20-Jun-2001

RebProcessor is a cross between an HTML pre-processor and a website content manager. The user creates source files (foo.src) which can contain any combination of HTML and RP commands, and the script will generate the target file (foo.html) for further use. ** EMail me for the help file, and for the example source file **

97 lines

3283 bytes

 
Cellphone reminder

remind.r

16-Jun-2000

Reads a file 'data.txt' containing appointment data, and sends my cell phone a text message 5 minutes before the appointment.

110 lines

5436 bytes

 
Image Sorter

image-sort.r

30-May-2001

A handy tool for sorting images into separate directories or deleting images. Includes scrolling list of image files with highlight and scrolling list of target directories. Also uses cursor keys, space, and backspace for navigation.

113 lines

4076 bytes

 
JPG analyse

jpg-analyse.r

4-Jan-2002

To remove some data from the JPG files to make them smaller. For example files from Adobe contains so many other informations that the file is twice bigger than may be.

2 pages

5068 bytes

 
Web Site Builder

build-site.r

3-Jun-1999

The actual script that builds the REBOL web site (using a master template and a navigation structure).

2 pages

5559 bytes

 
ZIP explorer

zip.r

3-Dec-2001

Shows content of some ZIP archive

2 pages

5421 bytes

 
PNG Examiner

png.r

25-Nov-2001

Basic PNG (Portable Network Graphics) parser which can show all informations from standard chunks in the file.

2 pages

5759 bytes

 
Dir-map explorer

dir-map-explorer.r

18-Jul-2001

to work with directory maps generated by %dir-mapper.r script

2 pages

5577 bytes

 
RAR parser

rar.r

3-Dec-2001

Just if you need to search inside your RAR archives (for example)

2 pages

5572 bytes

 
ico-parser2

ico-parser2.r

14-Aug-2001

To get data from the windows *.ico files

3 pages

9802 bytes

 
Binary Data in REBOL Scripts

bin-data.r

30-May-2000

Example of how to decode binary data in REBOL scripts This example includes a base-64 encoded image. (See bin-save.r for an example of how to create this file.)

3 pages

8847 bytes

 
Rebodex

rebodex.r

2-Apr-2001

A simple but useful address book contact database.

3 pages

6121 bytes

 
REBOL Standard Document Formatter

make-doc.r

25-May-2001

Converts very simple text file format into other document formats (such as HTML) with good titles, table of contents, section headers, indented fixed-spaced examples, bullets and definitons. Does the formatting so you can focus on the hard part: the words.

3 pages

9321 bytes

 
Simple Rebol DBMS

db.r

11-Sep-2001

RebolBase is a simple database managment system written entirely in Rebol. Its main feature is that it stores its data in plain, newline delimited text files. This allows the database to be accessed and modified by other programs.

5 pages

25091 bytes

 
REBOL External Application Launcher - self extracting archive

launcher-ext42.r

26-Mar-2001

Launches external apps (using the C system() call) from any version of REBOL

5 pages

22197 bytes

 
Script Library Builder

build-lib.r

19-Jul-2001

Builds the REBOL library, including its HTML pages and compressed archive file, then uploads the files to the web site. Can also be used for making a local copy of the library index pages.

6 pages

15663 bytes

 
REM 0.4.2 - Text Editor - self extracting archive

rem-ext42.r

1-May-2001

REM is a powerful full screen text editor for Rebol/Core and Rebol/View

6 pages

26411 bytes

 
REBOL/AI Image linker

ai.r

26-Mar-2002

Simple dialect for creating AdobeIllustrator files (ai) with linked images

6 pages

16053 bytes

 
Document Generator

generate-doc.r

19-Jul-1999

XMLish doc generator using parse-XML

7 pages

15988 bytes

 
eText

etext.r

5-Jul-2002

Processes plain text to HTML

7 pages

20111 bytes

 
Simple file manager

ropus.r

12-Dec-1999

Simple file manager

11 pages

18944 bytes

 


The line count is for code lines only and is used as a rough estimate of code size. It does not include script headers, blank lines, or comment lines.

To add or modify a file, run REBOL/View and click on the Add-Script icon in the Library folder. Be sure that the script has a REBOL header that describes its purpose.

You can download the entire library as a compressed, self-extracting REBOL archive. The file is 585 KB and requires REBOL to extract. You may need to right click on this link to save the file in some browsers.

Once you have extracted the files, you can build these HTML index pages locally by running the build-lib.r script.

Note: All scripts are provided AS IS without warranty and without liability to the author or to REBOL Technologies.

REBOL is a trademark of REBOL Technologies.