Machsupport Forum
		Mach Discussion => Mach4 General Discussion => Topic started by: matrix on October 25, 2018, 01:16:56 PM
		
			
			- 
				   
 
 Hello,
 
 I try append on txt file, and there is a problem, if the file dont exist, this script create a file and write the message.
 
 but if the file already exist, the File return a nil values, and dont append the message
 
 File = io.open("C:/perfLogs/Log1.txt", "a+" )
 File:write("test...")
 File:close()
 
 
 Is this code supposed to work for append mode? Why does not it work?
 
 Any one?
 
 
- 
				
 
 Solve,
 
 The folder as to be maximum share permition.
 
 it's a little weird because if the file does not exist the script creates a new one, but for some reason if it already exists, it's not possible to append.
 
 Any way, solve.