Macro to save file?

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

premium
Noob
Noob
Posts: 4
Joined: 17 Nov 2011, 06:57
Noob?: No

Macro to save file?

#1 Post by premium »

Is it possible for a macro to save a .txt?

I mean, what I want is to have my macro check players around and print
their names, jobs, and levels in .txt?
chocobrowny
Noob
Noob
Posts: 19
Joined: 21 Jul 2011, 01:16
Noob?: No

Re: Macro to save file?

#2 Post by chocobrowny »

use subroutine
"...Every coin have two sides, think more widely and Not everything is black and white, there are shades of grey..."
Image
User avatar
SkylorD
Moderators
Moderators
Posts: 1197
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Macro to save file?

#3 Post by SkylorD »

Or use do eval < perl expression >.
Learn rules
premium
Noob
Noob
Posts: 4
Joined: 17 Nov 2011, 06:57
Noob?: No

Re: Macro to save file?

#4 Post by premium »

Can someone give me a sample of that macro? I'm clueless right now but I might have an idea after looking at it.
User avatar
SkylorD
Moderators
Moderators
Posts: 1197
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Macro to save file?

#5 Post by SkylorD »

do eval open (XD, ">>", "file.txt");
Read about 'Perl File handling'.
Learn rules