Put# Statement
འབྲེལ་བའི་ཡིག་སྣོད་ལུ་དྲན་ཐོ་ཡང་ན་ཟུང་ལྡན་ཡིག་སྣོད་ལུ་བཱའིཊིསི་གི་འབྱུང་རིམ་འབྲིཝ་ཨིན།
Use Print# statement to print data to a sequential text file. Use Write# statement to write data to a sequential text file with delimiting characters.

Put [#]fileNum, [recordNum|filePos], variable
fileNum: Any integer expression that defines the file that you want to write to.
recordNum, filePos: For relative files (random access files), the number of the record that you want to write.
ཟུང་ལྡན་ཡིག་སྣོད་ཚུའི་དོན་ལུ་ (binary access), ཁྱོད་ཀྱིས་འབྲི་ནི་འགོ་བཙུགས་ནི་གི་ཡིག་སྣོད་ནང་བཱའིཊི་གི་གནས་ས་དེ་འཛུལ་སྤྱོད་འབདཝ་ཨིན།
variable: Name of the variable that you want to write to the file.
འབྲེལ་བའི་ཡིག་སྣོད་ཚུ་གི་དོན་ལུ་དྲན་དགོཔ་: འ་ནི་འགྱུ་ར་ཅན་གྱི་ནང་དོན་ཚུ་ ལིན་ ཁ་ཕྱེ་གསལ་བཤད་ཀྱི་ དབྱེ་དོན་ དེ་ནང་གསལ་བཀོད་འབདཡོད་མི་དྲན་ཐོ་གི་རིང་ཚད་དེ་མཐུན་སྒྲིག་མ་འབད་བ་ཅིན་གསརཔ་འབྲི་ཡོད་པའི་དྲན་ཐོ་གི་མཇུག་དང་ཤུལ་མམ་གྱི་དྲན་ཐོ་གི་བར་ན་བར་སྟོང་དེ་བར་ཤབས་ཡོདཔ་དང་གཅིག་ཁར་ཁྱོད་ཀྱི་འབྲི་ནི་ཨིན་མི་ཡིག་སྣོད་ལས་གནད་སྡུད་ཡོདཔ་མི།
ཟུང་ལྡན་ཡིག་སྣོད་ཚུ་གི་དོན་ལུ་དྲན་ཚིག: འགྱུར་ཅན་ཚུ་གི་ནང་དོན་ཚུ་གསལ་བཀོད་འབད་ཡོད་པའི་གནས་ས་ལུ་འབྲི་ཡོདཔ་ དང་ དཔག་བྱེད་དེ་མཇུག་གི་བཱའིཊི་ཤུལ་མ་ཐད་ཀར་དུ་བཙུགས་ཡོདཔ་ཨིན། དྲན་ཐོ་ཚུ་གི་བར་ན་བར་སྟོང་མེདཔ་ཨིན།
Sub ExampleRandomAccess
Dim iNumber As Integer
མདངས་གྲིབ་ཨེསི་ཚིག་ཡིག་་མི་མཐུན་པ་བཟུམ་སྦེ་ ཨིམ་འདི་མི་མཐུན་པ་དགོཔ་ཨིན།
Dim aFile As String
aFile = "C:\Users\ThisUser\data.txt"
iNumber = Freefile
Open aFile For Random As #iNumber Len=32
འཚོལ#ཨའི་ཨང་ ༡ རིམ་གནས་ས་འགོ་བཙུགས་ད་ལུ།
Put #iNumber, , "This is the first line of text" ' Fill line with text
Put #iNumber, , "This is the second line of text"
Put #iNumber, , "This is the third line of text"
Seek #iNumber,2
Get #iNumber, , sText
Print sText
Close #iNumber
iNumber = Freefile
Open aFile For Random As #iNumber Len=32
Get #iNumber, 2, sText
Put #iNumber, , "This is a new text"
Get #iNumber, 1, sText
Get #iNumber, 2, sText
Put #iNumber, 20, "This is the text in record 20"
Print Lof(#iNumber)
Close #iNumber
End Sub
Sub ExampleRandomAccess
Dim iNumber As Integer
Dim sText As Variant ' Must be a variant
Dim aFile As String
aFile = "~/data.txt"
iNumber = Freefile
Open aFile For Random As #iNumber Len=32
Seek #iNumber,1 ' Position at beginning
Put #iNumber, , "This is the first line of text" ' Fill line with text
Put #iNumber, , "This is the second line of text"
Put #iNumber, , "This is the third line of text"
Seek #iNumber,2
Get #iNumber, , sText
Print sText
Close #iNumber
iNumber = Freefile
Open aFile For Random As #iNumber Len=32
Get #iNumber, 2, sText
Put #iNumber, , "This is a new text"
Get #iNumber, 1, sText
Get #iNumber, 2, sText
Put #iNumber, 20, "This is the text in record 20"
Print Lof(#iNumber)
Close #iNumber
End Sub