Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class ChatLog {
- Static Path := ChatLog.setPath(A_MyDocuments "\GTA San Andreas User Files\SAMP\chatlog.txt")
- getNew( mode = 1 ) {
- Full := FileOpen(ChatLog.Path,"r").Read()
- New := StrReplace(Full,ChatLog.Old,"","",1), ChatLog.Old := Full
- return ( mode == 1 ? StrSplit(RegExReplace(New,"\R$"),"`n","`r") : New )
- }
- setPath( Path ) {
- ChatLog.Old := FileOpen(Path,"r").Read()
- return Path
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement