Login
or
Create an account
Search:
HOME
DOWNLOAD
PURCHASE
SUPPORT
PORTAL
FORUM
CONTACT US
News & Information
Suggestions & Feedback
General Discussions
FlashFXP Forums
>
Community Chatter
>
Programming
[iTCL] could u make ascii2bin accept lists
User Name
Remember Me?
Password
Register
Tickets
Search
Today's Posts
Mark Forums Read
Programming
Need help with C/C++/Delphi? Ask here and make us all laugh.
Thread Tools
Rate Thread
01-21-2004, 06:12 AM
#
1
b>d>>s
Senior Member
Join Date: Feb 2003
Posts: 488
[iTCL] could u make ascii2bin accept lists
?
atm, it just accepts lines separated by \n
just a thought ..
05-07-2004, 04:56 PM
#
2
Ofloo
Member
Join Date: Jun 2003
Posts: 43
set filename "your file to convert"
set rfile [open $filename r]
fconfigure $rfile -translation crlf
set rdata [read $rfile]
close $rfile
set wfile [open $filename w]
fconfigure $wfile -translation crlf
puts $wfile "$rdata"
close $wfile
that should take care of it i think ..
05-07-2004, 05:17 PM
#
3
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
Join Date: May 2003
Posts: 1,364
No, he was talking about the userfile and groupfile function, not reading from files.
[userfile ascii2bin ...] and [groupfile ascii2bin ...]
http://www.ioftpd.com/board/showthre...&threadid=1775
Could easily be done by:
userfile open "someuser"
userfile lock
set newufile ""
lappend newufile "credits 0 0 0 0 0 0 0 0 0 0"
lappend newufile "tagline Unknown"
userfile ascii2bin [join $newufile "\n"]
userfile unlock
ioFTPD would then replace the 'credits' and 'tagline' portion of the userfile with the new values, leaving the rest as it previously was.
Create a free account to browse our forums without ads
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Rate This Thread
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
All times are GMT -5. The time now is
12:23 PM
.
-- FlashFXP Default
---- FlashFXP Dynamic Width
-- Mobile
Archive
-
Privacy Statement
-
Top
Copyright © 1999-2012 OpenSight Software, LLC. All Rights Reserved.
Powered by vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Promote FlashFXP on your website and get paid for it!