• Post Reply Bookmark Topic Watch Topic
  • New Topic

how do i view text file in unix  RSS feed

 
sarasah guna
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my program will generate text file that is store in client pc. the promblem is that when view at unix operating system it is display as @ and the text is too long
below are syntax to generate the source file

The promblem is if i close the stream1 when the it is not null does not make sense. Please anyone kindly help me.
[ December 13, 2005: Message edited by: Jim Yingst ]
[ December 13, 2005: Message edited by: sarasah guna ]
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Perhaps the problem is that this page throws an exception at the end, every time:

if (stream1 == null){
stream1.close();

Shouldn't that be "if (stream1 != null)" ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!