二进制文件处理问题 [英] Binary file handling problem

查看:72
本文介绍了二进制文件处理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是使用Reader子类阅读.jpg或.jif内容的正确方法....


我的代码是这样的...... ............

FileReader l_file = new FileReader(" file_name");

String line = null;

while((line = l_file.readLine())!= -1)

{

System.out.print(line);

}

plz帮帮我!!!!!!!!!!!!!!!!!!


它可以我得到了该文件的全部内容....


提前预计

解决方案


是使用Reader子类读取.jpg或.jif内容的正确方法....



my代码是这样的......


FileReader l_file = new FileReader(" file_name");

String line = null;

while((line = l_file.readLine())!= -1)

{

System.out.print( line);

}

plz帮帮我!!!!!!!!!!!!!!!!!!


靠它我可以获得该文件的全部内容....


提前预付



哪里可以你想读它吗?你无法在控制台上打印.jpg。


thanx for ur reply


对不起!!!!!!!!!!! !!!!!

i不想打印.jpg文件。我只是想看看是否提取了全部内容


提前再次


展开 | 选择 | Wrap | 行号< /跨度>

is it the right way to read the content of a .jpg or .jif using Reader subclasses....


my code is something like this .......


FileReader l_file = new FileReader("file_name");
String line = null;
while((line = l_file.readLine()) != -1)
{
System.out.print(line);
}
plz help me out!!!!!!!!!!!!!!!!!!

by it can i get the whole content of that file....


thanx in advance

解决方案

is it the right way to read the content of a .jpg or .jif using Reader subclasses....


my code is something like this .......


FileReader l_file = new FileReader("file_name");
String line = null;
while((line = l_file.readLine()) != -1)
{
System.out.print(line);
}
plz help me out!!!!!!!!!!!!!!!!!!

by it can i get the whole content of that file....


thanx in advance

Where do you want to read it into? You cannot print a .jpg to the console.


thanx for ur reply

excuse me!!!!!!!!!!!!!!!!
i don''t want to print the .jpg file. i just want to see whether the full content is picked up or not

again thanx in advance


Expand|Select|Wrap|Line Numbers


这篇关于二进制文件处理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆