 |
|
จากข้อมูลข้างบนนะค่ะ พอเปิดไฟล์มาอ่านบน ASP แล้วข้อมูลจะมาหมด แต่ว่าการเว้นวรรค หรือการขึ้นบันทัดใหม่ไม่เหมือนเดิมจะต่อกันยาวไปเลย |
|
 |
|
|
 |
 |
|
ผมไม่แน่ในนะครับ
Response.Write replace(x ,vbCrLf,"<br>")
Response.Write replace(\n ,vbCrLf,"<br>")
Response.Write replace(\t ,vbCrLf,"<br>")
|
 |
 |
 |
 |
Date :
29 พ.ย. 2548 13:30:24 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้นิดหนึ่งนะครับ
<%
set fs=server.createobject("scripting.filesystemobject")
set t=fs.opentextfile("E:\caution\cat02.txt",1,true)
x=t.readall
x=replace(x ,vbCrLf,"<br>")
x=replace(x ,"\n","<br>")
x=replace(x ,"\t","<br>")
response.write x
t.close
%>
|
 |
 |
 |
 |
Date :
29 พ.ย. 2548 15:51:04 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|