Jump to content

File input/output: Difference between revisions

Added Vedit macro language
(Added Vedit macro language)
Line 2,044:
one liner (-2 for system default encoding)
<lang vb>CreateObject("Scripting.FileSystemObject").OpenTextFile("output.txt",2,-2).Write CreateObject("Scripting.FileSystemObject").OpenTextFile("input.txt", 1, -2).ReadAll</lang>
 
=={{header|Vedit macro language}}==
An edit buffer is normally used as "string variable" in Vedit.
To read a file into edit buffer, simply open the file. The file contents can then be modified if required before saving into a new file.
<lang vedit>File_Open("input.txt")
File_Save_As("output.txt", NOMSG)
Buf_Close(NOMSG) </lang>
 
=={{header|Visual Basic .NET}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.