11 if not infile then |
11 if not infile then |
12 print_err("Can't open input file for reading: "..tostring(err)); |
12 print_err("Can't open input file for reading: "..tostring(err)); |
13 return; |
13 return; |
14 end |
14 end |
15 |
15 |
16 local outfile, err = io.open(outfile_fn..".uglified", "wb+"); |
16 local outfile, err = io.open(outfile_fn..".uglified", "w+b"); |
17 if not outfile then |
17 if not outfile then |
18 print_err("Can't open output file for writing: "..tostring(err)); |
18 print_err("Can't open output file for writing: "..tostring(err)); |
19 return; |
19 return; |
20 end |
20 end |
21 |
21 |