rcd Posted December 4, 2007 at 03:34 PM Report Share #152221 Posted December 4, 2007 at 03:34 PM bom dia. como é que se faz para mudar de linha quando se está a escrever num ficheiro txt? obrigado. Link to comment Share on other sites More sharing options...
pedrotuga Posted December 4, 2007 at 03:39 PM Report Share #152223 Posted December 4, 2007 at 03:39 PM '\n' é o caracter de nova linha Link to comment Share on other sites More sharing options...
magician Posted December 4, 2007 at 04:48 PM Report Share #152245 Posted December 4, 2007 at 04:48 PM Se usares o PrintWriter podes usar o println. I haven’t lost my mind; it’s backed up on DVD somewhere! Link to comment Share on other sites More sharing options...
Knitter Posted December 4, 2007 at 11:15 PM Report Share #152365 Posted December 4, 2007 at 11:15 PM '\n', é o caracter de nova linha em *nix. Tens de usar os métodos que permitem independencia da plataforma, por exemplo o método que o magician indicou, que existe me mais classes, não apenas na PrintWriter. www.sergiolopes.eu 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