rsrcconv - npedotnet/npe-tools GitHub Wiki
rsrcconv
Resource converter.
Usage
rsrcconv -i inputfile [-o outputfile] -car/-cstr/-jstr/-b64 [-0/-nt]
Options
Option | Description |
---|---|
-i inputfile | input file name |
-o outputfile | output file name |
-car | C-Language array |
-cstr | C-Language string |
-jstr | Java string |
-b64 | Base64 |
-0 or -nt | null(0) terminated |
Examples
test.txt
foo
bar
baz
Convert to C-Language array
rsrcconv -i test.txt -car -nt
const unsigned char test_txt[]={102,111,111,10,98,97,114,10,98,97,122,10,0};
Convert to C-Language string
rsrcconv -i test.txt -cstr
const char test_txt[]=
"foo\n"
"bar\n"
"baz\n"
;
Convert to Java string
rsrcconv -i test.txt -jstr
String test_txt=
"foo\n"+
"bar\n"+
"baz\n"
;
Convert to Base64
rsrcconv -i test.txt -b64
Zm9vCmJhcgpiYXoK