without destroying that exe. i need an example of that.
Text is in array, like this:
Code: Select all
Dim Array.s(2)
Array(1) = "newline"
Array(2) = "line 2"
Code: Select all
Dim Array.s(2)
Array(1) = "newline"
Array(2) = "line 2"
Code: Select all
MyString.s = #CRLF$+"This"+#CRLF$+"is"+#CRLF$+"a"+#CRLF$+"multiline"+#CRLF$+"string"
MessageRequester("",Mystring)
Sorry my bad English, but i mean somelike this:Inf0Byt3 wrote:You mean like this?
Code: Select all
Dim array.s(1)
array.s(0) = "Test"
array.s(1) = "another test"
Dim message.s(1)
pfile.s="test.exe"
psize=FileSize(pfile)
file=OpenFile(0, pfile)
If file
FileSeek(0,psize)
For i = 0 To 1
WriteStringN(0,array.s(i))
Debug array.s(i)
Next i
MessageRequester("Status", "Added text to exe!")
CloseFile(0)
EndIf
fsize=FileSize(pfile)
file=ReadFile(0, pfile)
If file
FileSeek(0,psize)
For i = 0 To 1
message.s(i)=ReadString(0)
MessageRequester("Success!", message(i))
Debug message.s(i)
Next i
CloseFile(0)
EndIf