0
I need to read a txt. Only my project has to be extensible. type q does not only work on my machine. I think the txt file would have to stay in the project folder, and put a relative path. but I don’t know how to do that. help me.
Currently parts of the code are like this:
ManipuladorArquivo manipuladorArquivo = new ManipuladorArquivo("C:\\Users\\Vinicius\\Downloads\\politicos.txt");
public class ManipuladorArquivo {
private String caminhoArquivo;
public ManipuladorArquivo(String caminhoArquivo) {
this.caminhoArquivo = caminhoArquivo;
}
}
String pathDoFile = new File(""). getAbsolutePath(); pathDoArchive.Concat("politicos.txt"); This results?
– MauroAlmeida