simple chat... not working. can't find file.

new BookmarkLockedFalling
pandawdy
New Member
*

pandawdy Avatar

Posts: 22

Post by pandawdy on Jul 31, 2020 19:28:15 GMT -5

So I have written what I think is a really simple chat program. It works fine running locally on my computer, but on my VPS it doesn't work. Always throws up an error saying file not found when it attempts to open the text file. The file is definitely there. I thought it might be a permissions issue, but the chat.txt file has full permissions. And like I said, it runs fine locally.

Here is the code:


[beginning]

open "chat.txt" for input as #readchat

input #readchat, newinput$

print newinput$

close #readchat

input chat$

open "chat.txt" for output as #writechat

print #writechat, chat$

close #writechat

goto [beginning]



end

pandawdy
New Member
*

pandawdy Avatar

Posts: 22

pandawdy
New Member
*

pandawdy Avatar

Posts: 22