\JFile
A File handling class
Synopsis
class JFile
{
- // methods
- public static string getExt()
- public static string stripExt()
- public static string makeSafe()
- public static boolean copy()
- public static boolean delete()
- public static boolean move()
- public static mixed read()
- public static boolean write()
- public static boolean upload()
- public static boolean exists()
- public static string getName()
Methods
public
- copy() — Copies a file
- delete() — Delete a file or array of files
- exists() — Wrapper for the standard file_exists function
- getExt() — Gets the extension of a file name
- getName() — Returns the name, without any path.
- makeSafe() — Makes file name safe to use
- move() — Moves a file
- read() — Read the contents of a file
- stripExt() — Strips the last extension off of a file name
- upload() — Moves an uploaded file to a destination folder
- write() — Write contents to a file