Creating TXT file in 3.2.2

I’m trying to create a txt file using File.new. It was ok in Sonic Pi version 2.2 on Ubuntu, but I’ve got an error in version 3.2.2 on Windows 10

.

Hi @victorleao ,
looks looks like ‘permission denied’ on the directory you are trying to open that file. Check permissions , or use another path such as

File.new('C:/Users/<username>/Documents/test.txt', 'w')
1 Like