<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys

sys.path.append( os.pardir )
from file.file import file, mode
from file.txt import txt
from file.txtencode import txtencode
from file.txt2bin import txt2bin
from file.excel import excel
from argument.argfile import argfile

if __name__ == '__main__':
    args = argfile().parse()
    
    sub = file.__subclasses__()
    
    _file = sub[ mode[ args.mode ] ]
    lines = _file().read( args.inf )
    
    for line in lines:
        print( line )
    
    _file().write( args.outf, lines )

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys

sys.path.append( os.pardir )
from file.file import file, mode
from file.txt import txt
from file.txtencode import txtencode
from file.txt2bin import txt2bin
from file.excel import excel
from argument.argfile import argfile

if __name__ == '__main__':
    args = argfile().parse()
    
    sub = file.__subclasses__()
    
    _file = sub[ mode[ args.mode ] ]
    lines = _file().read( args.inf )
    
    for line in lines:
        print( line )
    
    _file().write( args.outf, lines )
#!/usr/bin/env python # -*- coding: utf-8 -*-