Welcome to WebmasterWorld Guest from 54.144.206.214

Forum Moderators: open

Reading files, accessing lists, writing files in XEmacs lisp.

How do you do it.

   
8:17 pm on Nov 12, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have written what I want to do in Perl.

open('IN', '<file'); 
while (<IN>) {
delete $choose{$_} if exists $choose{$_};
}
close('IN');
# choose one keys within %choose
open('OUT', '>>file');
print OUT $chosen;
close('OUT');

#add hook to delete $chosen from file when emacs is closed

Could anybody translate that to lisp or point me to a resource where I will find those infos myself. XEmacs´ lisp info pages have not been really helpful.

Andreas

8:45 pm on Nov 13, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any lisp hackers around?

TIA Andreas.

12:57 am on Nov 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perhaps the Lisp coders crawl out of their hiding places on weekends ;) Let´s see what happens.

Andreas

 

Featured Threads

Hot Threads This Week

Hot Threads This Month