Grey Hack

Grey Hack

DasGen Feb 21, 2022 @ 2:41pm
"\n" = newline?
In mycode i fill my var with strings and the strings seperated by a new line (its for a config i/o) but the \n doesnt count for a new lien in the string anymore
< >
Showing 1-8 of 8 comments
Xephael Feb 21, 2022 @ 3:01pm 
Originally posted by DasGen:
In mycode i fill my var with strings and the strings seperated by a new line (its for a config i/o) but the \n doesnt count for a new lien in the string anymore
"\n" no longer makes a new line in a file, though it still will in a print() statement. For files you must use char(10) instead now.
DasGen Feb 22, 2022 @ 3:02am 
thanks
DasGen Feb 22, 2022 @ 3:11am 
ccont = "[-----VAR NAME=VALUE-----]" + char(10) ccont = ccont + char(10) + "dumbServer=IP:PORT:USER:PASS" ccont = ccont + char(10) + "metaxploit="+searchMeta() ccont = ccont + char(10) + "crypto="+searchCrypto()

still writes everything in 1 line
Xephael Feb 22, 2022 @ 11:05am 
Originally posted by DasGen:
ccont = "[-----VAR NAME=VALUE-----]" + char(10) ccont = ccont + char(10) + "dumbServer=IP:PORT:USER:PASS" ccont = ccont + char(10) + "metaxploit="+searchMeta() ccont = ccont + char(10) + "crypto="+searchCrypto()

still writes everything in 1 line
that would suggest you're using an old version of your script by mistake
DasGen Feb 22, 2022 @ 12:26pm 
it's a script from and older version yes, everything works very well but the Config because of this error.

how can I solve it?
Xephael Feb 22, 2022 @ 12:29pm 
Originally posted by DasGen:
it's a script from and older version yes, everything works very well but the Config because of this error.

how can I solve it?
No, I mean you've accidentally didn't compile the new version using char(10) properly. The code you posted would correctly create multiple lines.
DasGen Feb 23, 2022 @ 7:25am 
if I wrote the code to a library file and using it by another program via import code
do I have to recompile the other program aswell
Xephael Feb 24, 2022 @ 6:30pm 
Originally posted by DasGen:
if I wrote the code to a library file and using it by another program via import code
do I have to recompile the other program aswell
yes import_code happens at compile time not runtime
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Feb 21, 2022 @ 2:41pm
Posts: 8