fileio_fopen

Format: fileio_fopen ( filename, mode )

Purpose: Open a file. The parameters filename and mode must be strings. The mode arguments are the same as in C (e.g. "r" for read access).

Return Values: Upon successful completion, fileio_fopen() returns a file (File type). Otherwise, an error code (Integer type) is returned.

Configuration: This function is only allowed, if secure mode is off.

Example:


    // opens a file named "/var/www/heitml2.1/try/index.hei" and prints its content

    f = fileio_fopen("/var/www/heitml2.1/try/index.hei","r");

    if isinteger(f);
        ? fileio_strerror (f);   
    else

       s = fileio_fread (f, 100000);

       ? s;
    
       fileio_fclose (f);
    /if;

See Also: fileio_fclose(), fileio_fread(), fileio_fwrite(), fileio_feof(), fileio_strerror().


This page was dynamically generated by the web application development tool RADpage of H.E.I.
© 1996-2017 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
    heitml Functions
    Advanced Functions
      containsRE
      containsCaseRE
      createMatchArray
      fileio_chmod
      fileio_fclose
      fileio_feof
      fileio_fopen
      fileio_fread
      fileio_fwrite
      fileio_strerror
      indexRE
      indexCaseRE
      regexcomp
      regexexec
      request_string
      request_tuple
      substr
      substRE
      substallRE
      TuSearch
      TuSearchTuple
      TuSort
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tryout Form
  Tutorial
  New Features
  heitml 1
User Guide
FAQ
Mailinglist
Discussion Group
Services
Pricing/Register
Download
Frame
 
Contact
 
 
 
Search: