ASP တိုက်ရိုက်ဖတ်မှု
အခြေခံ နှင့် အသုံးပြုခြင်း
Read မီးဖြေမှု ကို TextStream ဖိုင်မှ အသုံးပြုသည် နှင့် အချိန်အရ စာလုံးများ ကို ကိုယ်စားပြုသည်။
ပြောဉ်ပြီး
TextStreamObject.Read(numchar)
ပါဝင်သည် | ဖော်ပြ |
---|---|
numchar | လိုအပ်သောအရာတခုခု။ ဖိုင်မှ စာလုံးများ ထုတ်ယူရန်လိုအပ်သည်။ |
သဘော
<% dim fs,f,t,x 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) x=t.Read(5) t.close Response.Write("The first five characters are: " & x) %>
ထုတ်ပေးခြင်း:
ပထမဆုံး ငါးလုံး: အေလ်လို