O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 17 de 22 · Mídia

Write to a file async

Kostas Diakogiannis

Write to a file async

Write to a file async

Exactly like we have done with reading the file, we will use the fs.promise module to write to a file asynchronously and don't block our script from further execution. For that we will use the fs.write function of the filesystem and will wrap it as previous into a promise (in order to avoid callback hell) as it is shown above.

Give it a go and test that your file contains what you want.

 

 

 

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?