ASP ကျူတိုရီရယ်များ

ASP ပင်မစာမျက်နှာ

WP ကျူတိုရီရယ်

ဝဘ်စာမျက်နှာများ နိဒါန်း ဝဘ်စာမျက်နှာများ သင်တုန်းဓား ဝဘ်စာမျက်နှာများ အပြင်အဆင် ဝဘ်စာမျက်နှာများ ဖိုဒါများ WebPages Global ဝဘ်စာမျက်နှာများ ပုံစံများ ဝဘ်စာမျက်နှာများ အရာဝတ္ထုများ WebPages ဖိုင်များ ဝဘ်စာမျက်နှာများ ဒေတာဘေ့စ်များ ဝဘ်စာမျက်နှာများ အကူအညီပေးသူများ ဝဘ်စာမျက်နှာများ WebGrid ဝဘ်စာမျက်နှာများ ဇယားများ ဝဘ်စာမျက်နှာများ အီးမေးလ် ဝဘ်စာမျက်နှာများ လုံခြုံရေး ဝဘ်စာမျက်နှာများ ထုတ်ဝေခြင်း။ ဝဘ်စာမျက်နှာများ ဥပမာများ WebPages အတန်းများ

ASP.NET Razor

သင်တုန်းမိတ်ဆက် Razor Syntax Razor C# Variables Razor C# ကွင်း သင်တုန်း C# ယုတ္တိဗေဒ Razor VB Variables Razor VB Loops Razor VB Logic

ASP Classic

ASP မိတ်ဆက် ASP Syntax ASP Variables ASP လုပ်ထုံးလုပ်နည်းများ ASP အခြေအနေများ ASP Looping ASP ပုံစံများ ASP Cookies ASP Session ASP လျှောက်လွှာ ASP #ပါဝင်ပါသည်။ ASP Global.asa ASP AJAX ASP အီးမေးလ် ASP ဥပမာများ

ASP အကိုးအကား

ASP VB လုပ်ဆောင်ချက်များ ASP VB သော့ချက်စာလုံးများ ASP တုံ့ပြန်မှု ASP တောင်းဆိုချက် ASP လျှောက်လွှာ ASP Session ASP ဆာဗာ ASP အမှား ASP ဖိုင်စနစ် ASP TextStream ASP Drive ASP ဖိုင် ASP Folder ASP အဘိဓာန် ASP AdRotator ASP BrowserCap ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း။ ASP အကြောင်းအရာ Rotator ASP အမြန် Ref

ADO ကျူတိုရီရယ်

ADO မိတ်ဆက် ADO ချိတ်ဆက်မှု ADO မှတ်တမ်းအစုံ ADO ရုပ်ထွက် ADO မေးခွန်း ADO အမျိုးအစား ADO ထည့်ပါ။ ADO အပ်ဒိတ် ADO ဖျက်ပါ။ ADO ဒီမို ADO အရှိန်မြှင့်ပါ။

ADO အရာဝတ္ထုများ

ADO Command ADO ချိတ်ဆက်မှု ADO အမှား ADO Field ADO Parameter ADO အိမ်ခြံမြေ ADO မှတ်တမ်း ADO မှတ်တမ်းအစုံ ADO တိုက်ရိုက်ကြည့်ရှုခြင်း။ ADO ဒေတာအမျိုးအစားများ

ASP TextStream Object


TextStream အရာဝတ္ထုကို စာသားဖိုင်တစ်ခု၏ အကြောင်းအရာများကို ဝင်ရောက်ကြည့်ရှုရန် အသုံးပြုသည်။


နောက်ထပ် ဥပမာများ


စာသားဖိုင်ကို စာသားဖိုင်တစ်ခုမှ


TextStream ဖိုင်၏ အစိတ်အပိုင်းတစ်ခုကိုသာ ဖတ်နည်း


TextStream ဖိုင်မှ စာကြောင်းတစ်ကြောင်းကို ဖတ်နည်း


ဖိုင်မှ စာကြောင်းအားလုံးကို ဖတ်နည်း။


ဖိုင်ကိုဖတ်သည့်အခါ သတ်မှတ်ထားသော စာလုံးအရေအတွက်ကို ကျော်နည်း။


TextStream ဖိုင်ကိုဖတ်သည့်အခါ စာကြောင်းတစ်ကြောင်းကို ကျော်သွားပုံ


ကို TextStream ဖိုင်တွင် လက်ရှိလိုင်းနံပါတ်ကို မည်သို့ပြန်ဆိုရမည်နည်း။


ဖိုင်တစ်ခုရှိ လက်ရှိဇာတ်ကောင်၏ ကော်လံနံပါတ်ကို ရယူနည်း။


TextStream အရာဝတ္ထု

TextStream အရာဝတ္ထုကို စာသားဖိုင်များ၏ အကြောင်းအရာများကို ဝင်ရောက်ကြည့်ရှုရန် အသုံးပြုသည်။

အောက်ပါကုဒ်သည် စာသားဖိုင် (c:\test.txt) ကို ဖန်တီးပြီး ဖိုင်သို့ စာသားအချို့ကို ရေးပေးသည် (variable f သည် TextStream အရာဝတ္ထု၏ ဥပမာတစ်ခုဖြစ်သည်)။

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt",true)
f.WriteLine("Hello World!")
f.Close
set f=nothing
set fs=nothing
%>


TextStream အရာဝတ္ထု၏ စံနမူနာတစ်ခုကို ဖန်တီးရန် သင်သည် FileSystemObject အရာဝတ္ထု၏ CreateTextFile သို့မဟုတ် OpenTextFile နည်းလမ်းများကို အသုံးပြုနိုင်ပြီး၊ သို့မဟုတ် File object ၏ OpenAsTextStream နည်းလမ်းကို အသုံးပြုနိုင်သည်။

TextStream အရာဝတ္ထု၏ ဂုဏ်သတ္တိများနှင့် နည်းလမ်းများကို အောက်တွင် ဖော်ပြထားပါသည်။

သတ္တိ

Property Description
AtEndOfLine Returns true if the file pointer is positioned immediately before the end-of-line marker in a TextStream file, and false if not
AtEndOfStream Returns true if the file pointer is at the end of a TextStream file, and false if not
Column Returns the column number of the current character position in an input stream
Line Returns the current line number in a TextStream file

နည်းလမ်းများ

Method Description
Close Closes an open TextStream file
Read Reads a specified number of characters from a TextStream file and returns the result
ReadAll Reads an entire TextStream file and returns the result
ReadLine Reads one line from a TextStream file and returns the result
Skip Skips a specified number of characters when reading a TextStream file
SkipLine Skips the next line when reading a TextStream file
Write Writes a specified text to a TextStream file
WriteLine Writes a specified text and a new-line character to a TextStream file
WriteBlankLines Writes a specified number of new-line character to a TextStream file