Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setfile
#1
if i use thise code to set the text of a file....and iw anted to go back later and do it again but add on to the text not replace it...how wud i do it?

Function ( Function )
Code:
Copy      Help
str s b
s= "Hey"
b="C:\Documents and Settings\Sammy\Desktop\New Text Document.txt"
s.setfile(b)

Thats just an example but its what im using it for!
#2
From the help section on 'setfile'


Quote:setfile writes s to file. If from is 0 and the file already exists, destroys previous content. If from is -1, appends. If nbytes is -1, writes whole s. If the file does not exist, creates.
An old blog on QM coding and automation.

The Macro Hook
#3
Ok Ken thatnks lol i saw that but i was putting the flags before it for some reason so it was picking up 1 as that!...Thanks
#4
not a prob....wish i could say i dont get that stuff mixed up....took me 3 years to get the first three parameters for 'win' figured out.
An old blog on QM coding and automation.

The Macro Hook
#5
lol yup it happens!


Forum Jump:


Users browsing this thread: 1 Guest(s)