This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
topdawg_b
Voice
Posts: 32 Joined: Sun Dec 07, 2008 7:13 pm
Post
by topdawg_b » Fri Dec 12, 2008 12:05 pm
hi im using.
set out [open $recfile$ext w]
puts $out $text
close $out
everything works in the program fine but when the textfile is opened with wordpad all the text is on 1 line.
what can I add to $text to make it put a linefeed or new line command that the worpad would recognize
2. in mirc they have a $chr(num) command thats prints an ascii character and a asc("char") command that gives u the ascii number of a character. does eggdrop have such commands?
thanks . this is a great site
tomekk
Master
Posts: 255 Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:
Post
by tomekk » Fri Dec 12, 2008 12:29 pm
1. Are you making this file under some Linux OS and after that u trying to look into it under windows OS?
for linux can be \n, for windows can be \r\n or just \r, try.
2. try
Code: Select all
set char "a"
scan $char "%c" int
puts $int
topdawg_b
Voice
Posts: 32 Joined: Sun Dec 07, 2008 7:13 pm
Post
by topdawg_b » Fri Dec 12, 2008 2:22 pm
the \r\n did the trick ty
topdawg_b
Voice
Posts: 32 Joined: Sun Dec 07, 2008 7:13 pm
Post
by topdawg_b » Wed Dec 17, 2008 8:42 pm
the scan $char "%c" int converts to an ascii number what prints a char from an ascii number
tomekk
Master
Posts: 255 Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:
Post
by tomekk » Thu Dec 18, 2008 8:27 am
topdawg_b wrote: the scan $char "%c" int converts to an ascii number what prints a char from an ascii number