PenUltima Online

It is currently Tue Oct 07, 2008 5:59 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Acces Denied to readfile
PostPosted: Fri Feb 29, 2008 7:52 am 
Offline

Joined: Fri Feb 29, 2008 5:45 am
Posts: 2
I've do a little script, in a package, to test the I/O function's on file ".txt"

Code:
use file;
use cfgfile;
use uo;

program textcmd_scrivifile ( who, filename )

   var esito := readfile(filename);
   SendSysMessage( who, "esito path: " + esito );

endprogram


Into var ESITO will must be the return of the readfile().

As input paramenter i send this string:
:pkgtest:lettura.txt

In lettura.txt there's the string "Prova di lettura"

In all case the return of function is "ACCESS DENIED"

I've tried to check windows privs on R/W (but it's all ok)
I've tried to reinstall all but nothing.

The same script with the same folders and package run correctly in a computer's friend.

The POL version is 096.7 Vestal Virgin. and OS version Windows XP PRO

What's the problem?
thx to all


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 29, 2008 11:20 am 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 296
You need a fileaccess.cfg inside your config folder which contains the following (just an example):

Code:
FileAccess
{
  Package *
  Directory *
  AllowRead 1
  AllowWrite 1
  AllowAppend 1
  AllowRemote 0
  Extension .txt
}


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 29, 2008 11:58 am 
Offline

Joined: Fri Feb 29, 2008 5:45 am
Posts: 2
Problem solved.

Thx for solution :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl