From WikiChip
Difference between revisions of "mirc/commands/bwrite"
< mirc‎ | commands

m (Bot: Adding a template)
m (Bot: Fixing links)
Line 31: Line 31:
 
* [[List of identifiers - mIRC|List of identifiers]]
 
* [[List of identifiers - mIRC|List of identifiers]]
 
* [[$bvar identifier - mIRC|$bvar]]
 
* [[$bvar identifier - mIRC|$bvar]]
* [[/bread command - mIRC|/bread]]
+
* {{mIRC|/bread}}
* [[/breplace command - mIRC|/breplace]]
+
* {{mIRC|/breplace}}
* [[/bset command - mIRC|/bset]]
+
* {{mIRC|/bset}}
* [[/btrunc command - mIRC|/btrunc]]
+
* {{mIRC|/btrunc}}
* [[/bunset command - mIRC|/bunset]]
+
* {{mIRC|/bunset}}
* [[/fwrite command - mIRC|/fwrite]]
+
* {{mIRC|/fwrite}}
* [[/write command - mIRC|/write]]
+
* {{mIRC|/write}}
 
{{mIRC command list}}
 
{{mIRC command list}}
  
 
[[Category:MIRC commands]]
 
[[Category:MIRC commands]]

Revision as of 19:31, 5 July 2014

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.

Synopsis

/bwrite <filename> <start_pos> [length] <text|%var|&binvar>
/bwrite -t <filename> <start_pos> [length] <text|%var>

Switches

  • -t - Treats everything as plain text (i.e. binary variables are not evaluated)

Parameters

  • <filename> - the file name to be modified
  • <start_pos> - the position in the file to start writing at
  • [length] - Length of the data to be written
  • <text|%var|&binvar> - data to be written to the file

Example

;Write some text to a file at beginning of the file
/bwrite file.txt 0 hello there!
;Replace "there!" with "world!"
/bwrite file.txt 6 world!

Compatibility

Added: mIRC v5.3

Added On: 13/12/197

Note: Individual switches were not taken into consideration.

See also

[Expand]
v · d · e mIRC commands list