Put# Statement

መዝገብ ወደ አንፃራዊ ፋይል መጻፊያ ወይንም ተከታታይ ባይቶች ወደ ባይነሪ ፋይል ውስጥ መጻፊያ

tip

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 Statement diagram


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 ፋይሎች (binary access), በ ፋይል ውስጥ የ ባይት ቦታ ነው እርስዎ መጻፍ መጀመር የሚፈልጉበት

variable: Name of the variable that you want to write to the file.

ማስታወሻ ለ አንፃራዊ ፋይሎችተለዋዋጭ ከ መዝገብ እርዝመት ጋር ካልተመሳሰለ በ ተወሰነው በ Len clause በ መክፈቻ አረፍተ ነገር ውስጥ: በ መጨረሻው ቦታ ውስጥ በ መዝገብ የተጻፈው እና አዲስ በ ተጻፈው መዝገብ መጨረሻ እና በሚቀጠለው መዝገብ መካከል ከ ነበረው ፋይል ውስጥ ዳታ ይሞላል እርስዎ ወደሚጽፉበት

ማስታወሻ ለ binary ፋይሎች: የ ተለዋዋጭ ይዞታዎች ይጻፋሉ በ ተወሰነው ቦታ እና የ ፋይል መጠቆሚያ በ ቀጥታ ይገባል ከ መጨረሻው ባይት በኋላ: ምንም ባዶ ቦታ አይኖርም በ መዝገቦች መካከል

ለምሳሌ:

Please support us!