hi 

import java.io.*;

public class f_open
{
   public static void main (String args[])
     {
        File f = new File ("message.test",);

             if(f.exists())
               System.out.println(f + " exist");
             else
               System.out.println(f + " oppps ... not exist");
     }
........... some topic ;-)

now .. how can I read from file <message.test>
first line is:

May  4 15:51:04 dexter pppd[304]: local  IP address *.*.*.*

- in my scenario I need to read first line and:
read from second <space> May 4 and format text 'May 4'
read from next <space> 15:51:04 and rezult '15:51:04'
read from next <space> dexter .....
read from next <space> pppd[304]: ...
read from end off line and '..... rest of line'

go to next line ...
...

Q: for this class I need to use FileReader - for read-in
   and FileWriter - for write-in ?

Thank ... !

DANIEL
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to