mIRC Home    About    Download    Register    News    Help

Print Thread
#64426 18/12/03 02:38 PM
Joined: Aug 2003
Posts: 5
S
sala Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Aug 2003
Posts: 5
//writeini -n test.ini test lengte $str(1,921)

I want to write more then 920 characters to an ini section. Is this possible ?

#64427 18/12/03 02:49 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
binary variables or /write -a... maybe...


Code:
//if ( khaled isgod ) echo yes | else echo no
#64428 18/12/03 04:23 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
I think this is the maximum which windows alows you to write to ini files...

(I had a problem with ini files once and I was told that mIRC lets windows do the writing to ini files so it's not an error in mIRC but in windows)


If it ain't broken, don't fix it!
#64429 18/12/03 05:27 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
That's the 64k size limit, I've never heard of line lenght restrictions in inis, It's the mIRCs maximun line lenght which restricts this? causing the line too long error...

//writeini test.ini test lenght $str(1,900)
//write -al2 test.ini $str(1,900)
//Echo -s Filesize: $file(test.ini).size bytes

Last edited by theRat; 18/12/03 05:38 PM.

Code:
//if ( khaled isgod ) echo yes | else echo no
#64430 19/12/03 05:57 AM
Joined: Dec 2003
Posts: 9
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2003
Posts: 9
Possibly. I was able to.

Code:
alias workaround {
  writeini test.ini test length $str(1,1)
  set %not.important $read(test.ini,w,*length*)
  set %ln $readn
  write -l %ln test.ini $read(test.ini,%ln) $+ $str(1,921)
}


#64431 20/12/03 09:41 AM
Joined: Aug 2003
Posts: 5
S
sala Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Aug 2003
Posts: 5
* String too long: $str (line 60, script2.nns)

alias workaround {
writeini test.ini test length $str(1,1)
set %not.important $read(test.ini,w,*length*)
set %ln $readn
write -l %ln test.ini $read(test.ini,%ln) $+ $str(1,1921)
}


Link Copied to Clipboard