From WikiChip
Editing mirc/commands/bwrite
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | The '''/bwrite command''' can be used to write a specified amount of bytes from the string/buffer to a given file starting at the start_pos position. | |
− | The '''/bwrite''' | ||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
− | /bwrite | + | /bwrite <filename> <start_pos> [length] <text|%var|&binvar> |
− | + | /bwrite -t <filename> <start_pos> [length] <text|%var> | |
− | |||
− | |||
== Switches == | == Switches == | ||
− | * '''-t''' - Treats everything as plain text (i.e. | + | * '''-t''' - Treats everything as plain text (i.e. binary variables are not evaluated) |
− | |||
− | |||
== Parameters == | == Parameters == | ||
* '''<filename>''' - the file name to be modified | * '''<filename>''' - the file name to be modified | ||
− | * '''<start_pos>''' - the position in the file to start writing at | + | * '''<start_pos>''' - the position in the file to start writing at |
− | * '''[length]''' - Length of the data to be written | + | * '''[length]''' - Length of the data to be written |
* '''<text|%var|&binvar>''' - data to be written to the file | * '''<text|%var|&binvar>''' - data to be written to the file | ||
Line 26: | Line 19: | ||
;Replace "there!" with "world!" | ;Replace "there!" with "world!" | ||
/bwrite file.txt 6 world!</syntaxhighlight> | /bwrite file.txt 6 world!</syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compatibility == | == Compatibility == | ||
Line 37: | Line 24: | ||
== See also == | == See also == | ||
+ | * [[List of commands - mIRC|List of commands]] | ||
+ | * [[List of identifiers - mIRC|List of identifiers]] | ||
* {{mIRC|$bvar}} | * {{mIRC|$bvar}} | ||
− | |||
− | |||
* {{mIRC|/bread}} | * {{mIRC|/bread}} | ||
* {{mIRC|/breplace}} | * {{mIRC|/breplace}} | ||
+ | * {{mIRC|/bset}} | ||
* {{mIRC|/btrunc}} | * {{mIRC|/btrunc}} | ||
* {{mIRC|/bunset}} | * {{mIRC|/bunset}} | ||
− | |||
* {{mIRC|/fwrite}} | * {{mIRC|/fwrite}} | ||
* {{mIRC|/write}} | * {{mIRC|/write}} | ||
− | |||
− | |||
− | |||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:MIRC commands]] |