logo

Class file

logo

Introduction
Screenshots
License/Download
Installation
Userinterface
Function Index
Macro Programming
Links
Community

mouse left
no help

file Class Reference

file read/write more...

Public Member Functions

voidclose()
close file
voidfindNext()
find next
voidfind(string path, string s)
find file
boolopen(bool mode=true)
open file
stringread()
read file
voidwrite(string s)
write file

Public Attributes

stringfilename
filename

Detailed Description

This class provides a interface for reading and writing on files.

Member Documentation

string file::filename

    filename

    Name of the file to operate with.

    bool file::open(bool mode=true)

      open file

      Open a file. The filename had to be set prior to the property filename. If mode is true, the file is opened in readonly mode. If mode is false, the file is open as writeonly mode.

      Returns:

      true if operation was successful. Otherwise false.

      string file::read()

        read file

        Returns:

        the hole file is returned as a string

        void file::write(string s)

          write file

          The file is overwrite with the string s

          void file::close()

            close file

            The file is closed.

            void file::find(string path, string s)

              find file

              Find a file matching to the search string s. If a match is found, filename is set. Otherwise filename is set to "".

              void file::findNext()

                find next

                Find an other file match to a previous find. If a match is found, filename is set. Otherwise filename is set to "".

                SourceForge.net LogoThis page may be outdated. Visit the new LayoutEditor homepage for the newest infomations!