Ola javaneses,
como eu ja havia lido e-mails de vcs com duvidas quanto a como armazenar linhas em 
arquivo jah existente, aqui vai o codigo. Espero que me ajudem quando precisar!!
Abracos,



/*
contabiliza bug do ano 2000
autor: Jose Euclides Jr.
*/


import java.util.*;
import java.net.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class Bugdomil extends HttpServlet
  {

     public void doPost (HttpServletRequest req,HttpServletResponse sai)

                   throws ServletException, IOException
        {
      File Arquivo; 
      String Tecnico    = req.getParameter ("Tecnico");
      String Ramal      = req.getParameter ("Ramal");
      String Regional   = req.getParameter ("Regional");
      String Servidor   = req.getParameter ("Servidor");
      String Serie      = req.getParameter ("Serie");
      String Local      = req.getParameter ("Local");
      String Licenca    = req.getParameter ("Licenca"); 
      String Versao     = req.getParameter ("Versao");
      String Patch      = req.getParameter ("Patch");
      String mensagem;
      
      try
        
                {
        byte bt1[]  = Tecnico.getBytes();
        byte bt2[]  = Ramal.getBytes();
        byte bt3[]  = Regional.getBytes();
        byte bt4[]  = Servidor.getBytes();
        byte bt5[]  = Serie.getBytes();
        byte bt6[]  = Local.getBytes();
        byte bt7[]  = Licenca.getBytes();
        byte bt8[]  = Patch.getBytes();


        File saida = new File("Ano2k.txt");
        RandomAccessFile out = new RandomAccessFile(saida,"rw"); 
        out.seek(saida.length()); 
        out.write(bt1);
        out.writeChars(";");
        out.write(bt2);
        out.writeChars(";");
        out.write(bt3);
        out.writeChars(";");
        out.write(bt4);
        out.writeChars(";");
        out.write(bt5);
        out.writeChars(";");
        out.write(bt6);
        out.writeChars(";");
        out.write(bt7);
        out.writeChars(";");
        out.write(bt8);
        out.writeChars("\n");
        out.close();
        mensagem = "LEVANTAMENTO CONTABILIZADO COM SUCESSO";
                }       
    
        catch(IOException e)
                {
                        mensagem = "LEVANTAMENTO NAO EFETUADO - CONTACTAR 
ADMINISTRADOR";
                        
                }

            
        ServletOutputStream saida = sai.getOutputStream();

        sai.setContentType( "text/html" );
        saida.println("<head><title>PAGINA DE RETORNO</title></head>");
        saida.println("<P>&nbsp;</P>");
  saida.println("<font face=Arial size=3><b>" + mensagem + "</b>");
        saida.close();
  }

      }
                  


Jose Euclides Jr 
 <[EMAIL PROTECTED]> ou <[EMAIL PROTECTED]>
Web Developer
* Para nao receber mais e-mails da lista, acesse 
<http://www.sun.com.br:8080/guest/RemoteAvailableLists>, coloque seu e-mail, escolha a 
lista <[EMAIL PROTECTED]> e de um <submit>.

Responder a