[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux下使用cue/bin文件



我在linuxaid找到下面的代码,可以完成从bin到iso的转换,源代码如下:
http://www.linuxaid.com.cn/tips/9/8/989233502.shtml


#include <stdio.h>
#include <libaio.h>

#define byte unsigned char
#define SIZERAW 2352
#define SIZEISO 2048

FILE *INPUT, *OUTPUT;


int main( argc, argv )

        int argc;
        char *argv[];
{
        byte buf[SIZERAW+100];
        fprintf (stderr, "raw2iso - Converts RAW format files to ISO format - 
V1
.0 ");
       if ( argc != 3 ) return 1;
        INPUT = fopen( argv[1], "rb" );
        OUTPUT = fopen( argv[2], "wb" );
        memset( &buf[0], ' ', sizeof( buf ) );
        while( fread( &buf[0], SIZERAW, 1, INPUT ) ) {
            fwrite( &buf[0]+16, SIZEISO, 1, OUTPUT );
            memset( &buf[0], ' ', sizeof( buf ) );
        };
        return 0;
}


在 Tuesday 08 November 2005 09:58,Qiangning Hong 写道:
> Guo Liang wrote:
> > 如果一个cue/bin各式的光盘镜像文件中cue文件丢了,只剩下bin文件,有没有办法将这个bin文件中的信息读出来?
>
> 试试bin2iso
>
> --
> Qiangning Hong, Registered Linux User #396996
> My Blog: http://www.hn.org/hongqn
> RSS: http://feeds.feedburner.com/hongqn

-- 
====================
快乐着你的快乐!
幸福着你的幸福!!
====================

Reply to: