hello everyone What I want to do is I want to record the events of which authorized person performs which action to which user in the admin panel I designed, in a txt and when necessary, I want to read from this file and print it on the panel. If I need to summarize more How can I print and read data in txt with lapper? Basic view of the admin panel I pictured:
#=================================================== #Read file (Possible to read various Filetypes: .log/.txt/.ini/.cfg.lpr) #=================================================== $LinesofFile = Readfile($Filename,$Folder); What info you get from file.
-FileSize in bytes -CreationDate/Time -ModificationDate/Time -Number Of lines -LineNumber -Text from each line
!!!!!!!!!! USE THE FOR/WHILE LOOP, ONLY FOR THE LINES YOU WANT TO BE DISPLAYED ON YOUR SCREEN !!!!!!!!!!!!!!!!!!!
#=================================================== #Edit file (Possible to edit various Filetypes: .log/.txt/.ini/.cfg/.lpr) #===================================================
$Filename = "TestFile"; $Folder = "C:\Users\Blah\Desktop"; $NewText = "TESTTEST"; $LineToEdit = -1; # -1 to create a extra line $Extension = ".txt"; EditFile($Filename,$Folder,$NewText,$LineToEdit,$Extension);
#Delete a single line in the file. #Set '-1' as $NewText and set $LineToEdit which line you want to delete.