neon_yt Posted February 12, 2016 at 06:37 PM Report Share #593424 Posted February 12, 2016 at 06:37 PM Olá, eu quero saber como acessar um ficheiro que está dentro da pasta da aplicação. Exemplo: O ficheiro olá.txt está na pasta da aplicação E abri-lo automaticamente num Bloco De Notas criado pelo VB.Net sem ter que especificar todo o caminho. Link to comment Share on other sites More sharing options...
He B TeMy Posted February 12, 2016 at 06:38 PM Report Share #593425 Posted February 12, 2016 at 06:38 PM Application.StartupPath blocodenotas = File.RealAllText(Path.Combine(Application.StartupPath,filename)) Link to comment Share on other sites More sharing options...
neon_yt Posted February 12, 2016 at 06:39 PM Author Report Share #593426 Posted February 12, 2016 at 06:39 PM Application.StartupPath blocodenotas = File.RealAllText(Path.Combine(Application.StartupPath,filename)) Obrigado 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now