GTurnipseed
2007-10-19 16:10:06 UTC
Hi, all. I'm trying to design a user interface for modifying configuration files. The user is supposed to be able to open the file, make changes, and then press Commit, and the program *should* completely overwrite the file with the new data. Instead, it is appending all of the new data to the end of the existing file. I've attached the saving VI I've got, and any help would be appreciated. I've tried several combinations, but with no luck so far:
1. open first, with "replace or create", then write, then close
2. open first, with "replace or create", with "write only," then write, then close
3. don't open first, just write to text file
4. open first, with "replace or create", then set file position, mode "start", offset 0, then write, then close.
None of these have worked for me. Is this a glitch with LabVIEW, or is there some combination I missed? I've read the examples, browsed the Internet for advice, but have come up with nothing.
Thanks in advance,
Greg
1. open first, with "replace or create", then write, then close
2. open first, with "replace or create", with "write only," then write, then close
3. don't open first, just write to text file
4. open first, with "replace or create", then set file position, mode "start", offset 0, then write, then close.
None of these have worked for me. Is this a glitch with LabVIEW, or is there some combination I missed? I've read the examples, browsed the Internet for advice, but have come up with nothing.
Thanks in advance,
Greg