发现了一个奇怪的问题,我的程序在下面没有问题,可以得到正确的,数据并且显示图象,但是同样的程序在下得到的文件大小是不一样的,很奇怪,好象文件指针发生了偏移从中的129和130可以看出,文件指针的偏移不是80000,大家遇到过同样的问题吗,这个问题把我弄郁闷了,偏偏老师需要的是版本.下面是程序和log /************************************************ This program make difference between 2 images, this differ...
by 菜鸟小刀 - C/C++ - 2008-02-28 20:28:50 阅读(1381) 回复(1)
Dear All : 用C Shell 我如何寫text到一個file? 如何從file讀入text? 可否提供範例,Thanks!!!
sorry: i want to read or write the picture and sound file in unix,for example the '.jpeg' file. this my done: ..... int fd1=open("/load/picture1.jpg",O_RDONLY); ..... but fd1 is -1,why? thanks!!
在windows下写一个txt文件 然后读出来 发现为什么总是跳行读出呢,中间总是省略了, 代码贴下,哪位兄弟看看有啥错误啊 ,不知道是不是 写入文件时候print("$stringline \r\n");这句话不太对呢,我觉得没啥问题呢. 可读出来的时候才发现有问题呢. 谢谢! 输入到文件中的是array of array 1,2,3 4,6,8 a,b,c,d e,f,g 但读出后print竟然只 4,6,8 e,f,g 中间的两行不见了 这个是为啥呢 ? my $filepath="\.\\temp\\IDX.TXT"; open my...
启动squid就会出现以下警告,然后过一会进程就自动终止了 WARNING: Cannot write log file: none none: Permission denied messages will be sent to 'stderr'. 其中三个日志得配置如下: access_log none cache_log none cache_store_log none 只要我把上面三个注释掉,就不会报上面得警告。难道是将none当成了日志文件名?
改变read,write,readdir,open,release等函数指针,发现readdir可以正常获得目录名,open,release只能截获目录的操作, read,write完全截获不了任何操作。 请问各位大虾有遇到类似问题吗。现在感觉上是对目录的操作都能截获,但是对文件操作的就完全没有。 readdir(工作正常) 和 read 代码如下 int my_readdir(struct file *fp, void *buf, filldir_t filldir) { char *path = (char*)kmalloc(MAX_DIR_LENTH); ...
I found I can't write two public class in a java file,only 1 public class is allowed in a java file,and the name of the public class is the name of the java file. Is it right? So,I have a question now: if a class2 in java file2 wants to uses a class1(not public) in java file1,how can class2 access class1? thanks for any hint
inu服务器起动后有二个报错/bin/date和/bin/cat,系统显示E 297:write errorin swap file ;linux下修改文件,提示write error(file system sull?),求救:QQ272976620, MSN :netgjb@tom.com