a3deluxe Posted December 11, 2016 at 12:44 AM Report Share #601169 Posted December 11, 2016 at 12:44 AM Boa noite, Algum pode dar uma ajudinha, Queria apagar a linha (0) de um ficheiro txt, mas mantendo as restantes linhas que se encontram escritas. Obrigado Link to comment Share on other sites More sharing options...
a3deluxe Posted December 11, 2016 at 12:57 AM Author Report Share #601171 Posted December 11, 2016 at 12:57 AM Resolvido da seguinte maneira: // Dim linesList As New List(Of String)(File.ReadAllLines("c:\file.txt")) 'Remove the line to delete linesList.RemoveAt(0) File.WriteAllLines("c:\file.txt", linesList.ToArray()) 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