Package controleEstoque.arquivos

Examples of controleEstoque.arquivos.ControlCarregaArquivos


     * Obtem a lista atual de fornecedores
     * @return Lista atual de fornecedores
     */
    public ListaFornecedor obtemListaFornecedor(){
        File file = new File("Fornecedor/fornecedor.txt");
        ControlCarregaArquivos controlCarrega;
        try {
            controlCarrega = new ControlCarregaArquivos(Arquivo.FORNECEDOR);
      
            String arquivo[] = controlCarrega.retornaStringArquivo();
            Fornecedor[] fornecedor;
            if(arquivo != null){
                fornecedor = new Fornecedor[arquivo.length];
                int i = 0, j = 0, h = 0;
                while(i < fornecedor.length){
View Full Code Here


     * @return vetor com todos usuários cadastrados
     * @throws IOException Impossível abrir o arquivo de texto
     */
    private Login[] carregaArquivo() throws IOException{
       
        ControlCarregaArquivos carregaArquivos = new ControlCarregaArquivos(Arquivo.LOGIN);
        String[] linhas = carregaArquivos.retornaStringArquivo();
        Login[] login = null;
       
        if(linhas != null){
            login = new Login[linhas.length/3];
            int i = 0, j = 0, h = 0;
View Full Code Here

TOP

Related Classes of controleEstoque.arquivos.ControlCarregaArquivos

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.