View Full Version : Writefile append=false is BUG ?
frank10
7th December 2005, 15:38
I'm trying to write a file with WriteFile function without appending info, with append = false, but this doesn't work: I get always new info appended to file.
To test this, try:
Version.FadeIn(50).ConvertToYV12
WriteFile(last, "C:test.txt", "current_frame", append=false)
Is this a bug or am I making something wrong?
gzarkadas
13th December 2005, 03:38
I couldn't reproduce it; for me it works as intended. Reinstall everything, fix the typos in your script and retry ;) .
Wilbert
13th December 2005, 14:06
Which avs version are you using? C:test.txt should be C:\test.txt.
frank10
13th December 2005, 14:13
Thank you for the answer, but to me it's a bug.
I make this:
I load the above script in VirtualDub 1.6.10, I scrub the Timeline on some frames and then I open the file test.txt that was written and I find a lot of lines with the frames I scrubbed instead of a single line with the last frame I scrubbed. This should be instead when you select append=false.
Edit: I haven't seen your answer before, Wilbert. But it doesn't change either C:test.txt or C:\test.txt. My version is 2.55
frank10
13th December 2005, 14:22
I'm sorry. I misunderstood the 'append' meaning:
I was thinking to have only the last variable written to the file, not that every time I load the script, the result was appended to the same file.
Sorry again. With this meaning it works.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.