================== File Class : ==================
============== TextStream Class : ==============
=========== Usefull string functions : ===========
...Copy the JavaScript source code below :
Methods : Copy, Delete, Move, OpenAsTextStream
-Copy(sSource, sDestination, bOverwrite?)
-Delete() : removes the file
-Move(sSource, sDestination)
-OpenAsTextStream(k) :
ForReading, (k=1)...read only
ForWriting, (k=8)...write
ForAppending, (k=2)...overwrite
Properties :
-Attributes : refers to the file attributes
-DateCreated : returns the file's creation date
-DateLastAccessed : returns the file's last-accessed date
-DateLastModified : returns the file's last-modified date
-Drive : returns the file's letter drive
-Name : returns the file name
-ParentFolder : returns the file's parent folder name
-Path : returns the file's long path
-ShortName : returns the file's short name
-ShortPath : returns the file's short path
-Size : returns the file size
-Type : returns the file type
Methods : ReadAll, ReadLine, Read, Write, WriteLine, and Close.
-ReadAll : returns a string representing a line from a file.
-ReadLine(x) : returns the x line from a file.
-Read(x) : returns the first x characters from a file.
-Write(strMessage) : writes a string to a file. Overwrite the old string.
-WriteLine(strMessage) : adds a string to a file. A new line is created.
-WriteBlankLines() : adds blank lines.
-Close : flushes the buffers and closes the TextStream.
-AtEndOfLine : returns true when the line has been read from a file.
-AtEndOfStream : returns true when all lines have been read from a file.
-FileExists(sFile) : returns true or false.
-GetExtensionName(sFile) : returns the file extension.
-Skip(x) : deletes the first x characters from a file.
-SkipLine(x) : deletes the first x lines from a file.
-InStr(x)
-Trim(x)