EvilZone
Programming and Scripting => Scripting Languages => : Live Wire February 01, 2012, 11:09:56 PM
-
So I've been working with Autoit for about an hour now, and its really easy to use. Fr those who don't know, its like the bastard child of C and java. But is there any way to just write to a file? The things I find online are either for writing to a .log file, or overwriting a file. I just need a command that adds a new line of text to a .txt file. Any thoughts? ( besides telling me to google it?)
-
I have never used this lang, but from quick google can find:
FileOpen (http://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm)
FileWrite (http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm)
FileClose (http://www.autoitscript.com/autoit3/docs/functions/FileClose.htm)
I figure that would probably work. FileOpen would be mode=1(append).
I also don't see any resemblence to c or java.
-
What I meant was that it is more like an object oriented C. And I was looking more for something that would just put the text into the file, like the echo something > something.txt in bash, for quick word list generation or something like that.
-
looks more like VB to me.
can't one line everything bro, and even if you could doesn't mean it's the best way to do it. take a lesson from C or java, do it yourself. open/write/close is in most languages, just use it.
-
Think I'm just going to write what I want in bash. But these commands have given me a new idea. Trojan for edit host files maybe. Send it to the dumb bitch on the friends list, and redirect her fb to pornhub. Lol
-
hosts file doesn't always work? at least for me it just doesn't. Just sniff the local traffic and change packet data on the fly :D
-
hosts file doesn't always work? at least for me it just doesn't. Just sniff the local traffic and change packet data on the fly :D
I could, but it's more fun to send exe, have it return a fake error, then redirect all Facebook to porn. And I've never had a problem with hosts file. We're talking about people who don't deserve more than 5 lines of code to fuck with ;)