FileManager f_write problem
#1

Hey!

Why wouldnt this code write anything ? No matter if I change mode on top to "w" as write, still nothing.

PHP Code:
new File:Test;
Test f_open("scriptfiles/test.txt""a");
if(!
Test)
{
      
file_create("scriptfiles/test.txt");
      
f_write(Test"hello");

I'm using FileManager 1.4 plugin and include.
Reply
#2

Quote:
Originally Posted by Y_Less
View Post
Because you test that the file didn't open. You can't write to a file you failed to open.
I use "file_create"tho
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)