diff -r b772dd0e119b -r bb11d7eaae0f plugins/include/files.inc --- a/plugins/include/files.inc Mon Feb 12 08:28:35 2007 +0000 +++ b/plugins/include/files.inc Mon Feb 12 09:00:55 2007 +0000 @@ -1,4 +1,5 @@ /** + * vim: set ts=4 : * =============================================================== * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. * =============================================================== @@ -78,17 +79,17 @@ * @note Files are closed with CloseHandle(). * @note File Handles can be cloned. * - * @param file File to open. - * @param mode Open mode. - * @return A Handle to the file, INVALID_HANDLE on open error. + * @param file File to open. + * @param mode Open mode. + * @return A Handle to the file, INVALID_HANDLE on open error. */ native Handle:OpenFile(const String:file[], const String:mode[]); /** * @brief Deletes a file. * - * @param path Path of the file to delete. - * @return True on success, false otherwise. + * @param path Path of the file to delete. + * @return True on success, false otherwise. */ native bool:DeleteFile(const String:path[]); @@ -105,34 +106,34 @@ /** * @brief Tests if the end of file has been reached. * - * @param file Handle to the file. - * @return True if end of file has been reached, false otherwise. + * @param file Handle to the file. + * @return True if end of file has been reached, false otherwise. */ native bool:IsEndOfFile(Handle:file); /** * @brief Sets the file position indicator. * - * @param file Handle to the file. - * @param position Position relative to what is specified in whence. - * @param whence Look at the SEEK_* definitions. - * @return True on success, false otherwise. + * @param file Handle to the file. + * @param position Position relative to what is specified in whence. + * @param whence Look at the SEEK_* definitions. + * @return True on success, false otherwise. */ native bool:FileSeek(Handle:file, position, whence); /** * @brief Get current position in the file. * - * @param file Handle to the file. - * @return Value for the file position indicator. + * @param file Handle to the file. + * @return Value for the file position indicator. */ native FilePosition(Handle:file); /** * @brief Checks if a file exists. * - * @param path Path to the file. - * @return True if the file exists, false otherwise. + * @param path Path to the file. + * @return True if the file exists, false otherwise. */ native bool:FileExists(const String:path[]); @@ -148,16 +149,16 @@ /** * @brief Checks if a directory exists. * - * @param path Path to the directory. - * @return True if the directory exists, false otherwise. + * @param path Path to the directory. + * @return True if the directory exists, false otherwise. */ native bool:DirExists(const String:path[]); /** * @brief Get the file size in bytes. * - * @param path Path to the file. - * @return File size in bytes, -1 if file not found. + * @param path Path to the file. + * @return File size in bytes, -1 if file not found. */ native FileSize(const String:path[]); @@ -165,8 +166,8 @@ * @brief Removes a directory. * @note On most Operating Systems you cannot remove a directory which has files inside it. * - * @param path Path to the directory. - * @return True on success, false otherwise. + * @param path Path to the directory. + * @return True on success, false otherwise. */ native bool:RemoveDir(const String:path[]); @@ -174,9 +175,9 @@ * @brief Writes a line of text in a file. * @note This native will append the newline character. * - * @param hndl Handle to the file. - * @param format Formatting rules. - * @param ... Variable number of format parameters. - * @return True on success, false otherwise. + * @param hndl Handle to the file. + * @param format Formatting rules. + * @param ... Variable number of format parameters. + * @return True on success, false otherwise. */ native bool:WriteFileLine(Handle:hndl, const String:format[], {Handle,Float,String,_}:...);