二进制文件处理问题 [英] Binary file handling problem
问题描述
是使用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 advanceWhere 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屋!
查看全文