Page 2 of 2 <12
Topic Options
#46347 - 2003-10-10 03:41 PM Re: read value, perfom action, del value
nostradamus99 Offline
Fresh Scripter

Registered: 2003-10-06
Posts: 10
I never said they where POORLY documented...I like the way it is pointed out at http://www.gwspikval.com/jooel/UDF/.
I just understand the standard kix commands easier.

As said previously: I'm a starter. I took a look at http://www.gwspikval.com/jooel/UDF/ for the readfile() and writefile() functions. I was unable to find the writefile function so that was the end of my search. maybe the readfile is almost the same function as writefile but I could not determine this.
I don't mean any disrespect,flame or whatever...you guys are the guru's and if I'm totally wrong than I stand corrected [Smile]

Top
#46348 - 2003-10-10 05:52 PM Re: read value, perfom action, del value
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, with the search you would have found file-writers, but you are right, not simple writefile() is there.

the reason is very simple.
it's because writefile is simple.

here is an example writefile udf:
function writefile($file,$data)
dim $filehandle,$RC
$filehandle=freefilehandle
$RC=open($filehandle,$file,5)
$RC=writeline($filehandle,$data)
$RC=close($filehandle)
endfunction
_________________________
!

download KiXnet

Top
#46349 - 2003-10-10 05:55 PM Re: read value, perfom action, del value
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
the writefile I had in mind was...

code:
 Function WriteFile($File,$Array)
Dim $element, $f
$f=freefilehandle
$=open($f,$file)
if @error exit @error endif
for each $element in $array
$=writeline($f,$element+@crlf)
next
$=close($f)
EndFunction



[ 10. October 2003, 17:56: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#46350 - 2003-10-10 07:05 PM Re: read value, perfom action, del value
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ja, this is what I ment.
it's so simple and can be done in various ways.
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 229 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.055 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org