Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Pibaldo

Gravar no Servidor

Recommended Posts

<%

'***************** CreateTextFile

Set fso = CreateObject("Scripting.FileSystemObject")

Set folderObject = fso.GetFolder(Server.MapPath("\fso") & "\")

Set textStreamObject = folderObject.CreateTextFile("testfile.txt",true,false)

 

textStreamObject.WriteLine("a new text file")

textStreamObject.Close ' remember to close it so that it writes the file

 

Set textStreamObject = Nothing

Set folderObject = Nothing

Set fso = Nothing

 

' Creates a text file called "testfile.txt" in the folder, overwrites if it exists

' and sets it to ascii (false to indicate not unicode). Then write "a new text file"

' to the testfile.txt, and closes it

' NB remember the trailing slash in the GetFolder method

%>

 

 

 

Mais informações olhe esta referencia FSO "Manipulação de Arquivos"

 

http://www.sloppycode.net/fso/?m=126

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.