PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Acces Denied to readfile

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
Snuff



Joined: 29 Feb 2008
Posts: 2

PostPosted: Fri Feb 29, 2008 11:52 am    Post subject: Acces Denied to readfile Reply with quote

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

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Fri Feb 29, 2008 3:20 pm    Post subject: Reply with quote

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
}

Author Message
Snuff



Joined: 29 Feb 2008
Posts: 2

PostPosted: Fri Feb 29, 2008 3:58 pm    Post subject: Reply with quote

Problem solved.

Thx for solution Very Happy

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty