Posts

Using Sys functions

Getting list of all environmental variables with their value  Sys,getenv() Getting value of specific environmental variable  Sys.getenv("envname") Getting current machine information  Sys.info() Getting current system date and time  Sys.time() Getting current system date  Sys.Date()

Using file functions

Delete a file and return True if success file.remove("filename") Select a file using open file dialog file.choose() Display contents of a file file.show("filename") Check whether a file exists and return True if found file.exists("filename") Copy file from source to target file.copy("source","target") Rename a file file.rename("oldname","newname") Getting file or directory information  file.info("file or dir name") Get file Size in bytes  file.size("filename")