Results 1 to 9 of 9
Like Tree6Likes
  • 1 Post By Norm
  • 1 Post By noobplus
  • 1 Post By Norm
  • 1 Post By Norm
  • 2 Post By Norm

Thread: how to convert .evt to .txt codes?

  1. #1
    aztu_ester is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default how to convert .evt to .txt codes?

    Hi Every one,
    There are event logs,I want to directly convert these logs (.evt) to (.txt) how can ı create on netbeans this program on java?Help please :(

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,454
    Rep Power
    25

    Default Re: how to convert .evt to .txt codes?

    Do you have the internal format for .evt files? Given that you could probably convert its textual contents to text.
    noobplus likes this.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    noobplus's Avatar
    noobplus is offline Senior Member
    Join Date
    Feb 2012
    Location
    chennai,south of India(south east of asia)
    Posts
    232
    Rep Power
    3

    Default Re: how to convert .evt to .txt codes?

    Quote Originally Posted by aztu_ester View Post
    I want to directly convert these logs (.evt) to (.txt) (
    FileReader and BufferedReader to read the file, and write it to another file using FileWriter and BufferedWriter would work
    Java Code:
    FileReader file_in=new FileReader(".evt");
    BufferedReader in=new BufferedReader(file_in);
    FileWriter file_out=new FileWriter(".txt");
    BufferedWriter out=new BufferedWriter(file_out);
    String input_line="";
    while((input_line=in.readLine())!=null)
    {
    out.write(input_line+"\n");
    }
    regards
    dhilip
    Last edited by noobplus; 04-10-2012 at 05:03 PM.
    aztu_ester likes this.

  4. #4
    aztu_ester is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Re: how to convert .evt to .txt codes?

    Yes,I have internal format,There are Folders on the Netapp machine,and logs on the Netapp.I want to convert these Logs to .txt file.How Can I convert extension on similar Java program?


    Example Log : https://rapidshare.com/files/2316194...0227172411.rar

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,454
    Rep Power
    25

    Default Re: how to convert .evt to .txt codes?

    If you're only copying the file, use the OS's commands to copy and rename the file.
    noobplus likes this.
    If you don't understand my response, don't ignore it, ask a question.

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,454
    Rep Power
    25

    Default Re: how to convert .evt to .txt codes?

    Do you have the internal format for a .evt file? You will need that to convert its contents to a text file.
    You'd would need a byte by byte description of what is in the file.
    noobplus likes this.
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    aztu_ester is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Re: how to convert .evt to .txt codes?

    In fact I don't have information about OS's commands to copy and rename the file.My aim is On the NetApp,event Logs,to change .txt format.Because I want to use these Logs on the Log Server(ubuntu).Would you give me a short information about OS's commands to copy and rename the file,please?

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,454
    Rep Power
    25

    Default Re: how to convert .evt to .txt codes?

    Most OS have a copy command and a rename command. Use the doc for the OS to find the names of the commands.
    noobplus and aztu_ester like this.
    If you don't understand my response, don't ignore it, ask a question.

  9. #9
    noobplus's Avatar
    noobplus is offline Senior Member
    Join Date
    Feb 2012
    Location
    chennai,south of India(south east of asia)
    Posts
    232
    Rep Power
    3

    Default Re: how to convert .evt to .txt codes?

    Quote Originally Posted by aztu_ester View Post
    Log Server(ubuntu).
    I was attracting you to java's FileWriter class never mind

    regards
    dhilip

Similar Threads

  1. Need help with my codes
    By vesperia in forum NetBeans
    Replies: 3
    Last Post: 06-29-2011, 12:23 PM
  2. Replies: 10
    Last Post: 02-06-2011, 04:48 AM
  3. I need some codes
    By johnmergene in forum New To Java
    Replies: 11
    Last Post: 01-25-2011, 03:42 AM
  4. What do the following codes do?
    By javaguy2 in forum New To Java
    Replies: 2
    Last Post: 01-23-2011, 10:23 PM
  5. where java codes to be run?
    By samira_fk222 in forum New To Java
    Replies: 1
    Last Post: 01-03-2011, 09:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •