03-26-2010 10:19 AM
Sorry, im new to Labview.
My situation is this.
I can store the name and the result and i have the index.
Now I'm having a problem on overwriting result i had in text file.
I give you an example.
Now in my text file i have a name of a student and the result.
i wan to overwrite the result of the student.(this is just an example.)
can someone guide me please?
really need help as this is my school project.
Thanks!
i'll attach my program i have done soon.
03-26-2010 11:01 AM
03-26-2010 11:05 AM
03-26-2010 08:13 PM
you got the wrong idea.
i do not want to replace the file to a new file.
what i want was to edit the exsiting file if the same name appear twice.
Example:
in my text file i have already had the name of example Tom and result 80
and now i input the same name and diff result.
i wan was to overwrite the result.
my project was similar to this here is my attachment of my project
03-27-2010 02:51 AM
Use read from spreadsheet file to read data fitst.
Then, edit read data and write it back using write to spreadsheet file.
03-27-2010 04:44 AM
03-27-2010 06:14 AM
03-28-2010 08:14 PM
By doing that, must i manually change it myself by looking at the table?
(btw im using labview 2009)
Can it be by when there's the same data in the file, it will overwrite by itself ONLY on the result.
Something like this:
In my text file i have:
Name Result
Tom 80
and when i key in again on the front panel to store:
Name: Tom
Result: 70
it detect the same name, but different result and it will overwrite the previous result.
and they will show (when you search for the name):
Name: Tom
result :70
you can take a look at the attachment.
03-28-2010 08:18 PM
There are many array manipulation function available in LabVIEW.
Try study each of them to see how can you utilize it for your task.
03-28-2010 09:37 PM
i got the idea what funtion to use. But i dont know how to apply it.