write text file with fixed field length
Hi i would like to write a text file with fixed field length
12 is the fixed field length.
<%
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Dim objFSO, objFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Inetpub\wwwroot\Menu\Profa rin\hit_count2.txt", 8, True)
nome = "test"
cod = "43"
objFile.WriteLine("" & nome & " " & cod & " ")
objFile.close
SET objFile = NOTHING
SET objFSO = NOTHING
%>
file output should be:
test 43 .
. the point is to tell that the text file end there (the point doesn´t appear in the text file)
Thank you
|