REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: script?

script?  source

Checks file, url, or string for a valid script header.

Arguments:

source [file! url! binary! string!]

See also:

Description

If the header is found, the script string will be returned as of that point. If not found, then NONE is returned.

print either script? %file.txt ["found"]["not found"]


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin