file.Open
Example
Open a file in read only mode, reads a line, tells where the current file pointer is at and then closes the file handle.
Output: //
// Default mapcycle file for Garry's Mod.
45
Attempts to open a file with the given mode.
the file extension is ".db; .mdmp; .dmp" or the file is "server.cfg; autoexec.cfg; config.cfg; listenserver.cfg; mount.cfg"
nil if it failed to open due to it not existing or being used by another process.Open a file in read only mode, reads a line, tells where the current file pointer is at and then closes the file handle.