Post by DarkPikachu on Jan 9, 2014 21:12:33 GMT -5
[glow=black,1,0]Home | Next ( u8() - bh64() )
ImportFile( filepath='' )
ExportFile( filepath='' )
TempFile( name='' )
SwitchFile( identifier='' )
ImportFile() or ExportFile() is used to handle additional files specified either by the file or script.
TempFile() defines a temporary memory space to write data to, and then read from during the import/export process.
the data created is scrapped and deleted after the process completes.
(temp files don't refer to external files, they are merely for extra storage)
^ this is useful for compression or memory-spaced objects
SwitchFile()
when any of the above functions are used, they typically redirect the data handlers to the current file.
this function is used to switch back to the main file,
or switch between files (or data spaces) in a complex, memory-managed operation.
accepted inputs:
FileID = ImportFile('folder/file.typ') #local directory (relative to primary file)
FileID = ImportFile('C:/file.typ') #global directory
#same inputs for ExportFile()
FileID = TempFile('FILE0') #NOTE: you can use ANY character in the filename
SwitchFile() #primary file
SwitchFile(FileID) #type(FileID) >>> <type 'int'> (from anything above)
SwitchFile('FILE0') #our temp file above
[/glow]
ImportFile( filepath='' )
ExportFile( filepath='' )
TempFile( name='' )
SwitchFile( identifier='' )
ImportFile() or ExportFile() is used to handle additional files specified either by the file or script.
TempFile() defines a temporary memory space to write data to, and then read from during the import/export process.
the data created is scrapped and deleted after the process completes.
(temp files don't refer to external files, they are merely for extra storage)
^ this is useful for compression or memory-spaced objects
SwitchFile()
when any of the above functions are used, they typically redirect the data handlers to the current file.
this function is used to switch back to the main file,
or switch between files (or data spaces) in a complex, memory-managed operation.
accepted inputs:
FileID = ImportFile('folder/file.typ') #local directory (relative to primary file)
FileID = ImportFile('C:/file.typ') #global directory
#same inputs for ExportFile()
FileID = TempFile('FILE0') #NOTE: you can use ANY character in the filename
SwitchFile() #primary file
SwitchFile(FileID) #type(FileID) >>> <type 'int'> (from anything above)
SwitchFile('FILE0') #our temp file above
[/glow]