关于C C++ 和java的文件读写问题# Programming - 葵花宝典
f*f
1 楼
要求:a file is to be copied and at the same time its content has to be
reversed (byte by byte)
程序的问题是,当文件很大时, 出错.
请各位大虾,还有聪明的小米,还有好心的xdjms,多多指点. :-)
c语言
#include
#include
#define BUFFER_SIZE 1
int main(int argc, char *argv[])
{
FILE *fp_src, *fp_dest;
void *buffer;
int read;
unsigned int fpSize = 0;
int i,j;
buffer = malloc(BUFFER_SIZE);
if (argc != 3)
{
printf("usage: rcopy srcFile destFile \n");
reversed (byte by byte)
程序的问题是,当文件很大时, 出错.
请各位大虾,还有聪明的小米,还有好心的xdjms,多多指点. :-)
c语言
#include
#include
#define BUFFER_SIZE 1
int main(int argc, char *argv[])
{
FILE *fp_src, *fp_dest;
void *buffer;
int read;
unsigned int fpSize = 0;
int i,j;
buffer = malloc(BUFFER_SIZE);
if (argc != 3)
{
printf("usage: rcopy srcFile destFile \n");