ASP Column Property
Complete TextStream Object Reference
The Column property returns the column number of the current character
position in an input stream.
Note: This property is 1 after a new line character is written (even before any other character is written).
Syntax
Example
<%
dim fs,f,t,x,y
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt")
f.write("Hello World!")
f.close
set t=fs.OpenTextFile("c:\test.txt",1,false)
do while t.AtEndOfStream<>true
x=t.Read(1)
y=t.Column-1
loop
t.close
Response.Write("The last character in the text file is: " & x)
Response.Write("<br /> at character position: " & y)
%>
Output:
The last character in the text file is: !
at character position: 12
|
Complete TextStream Object Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|