Hey I am trying to write some data into a fail using a table.
I get it to work but, every time I add a new piece of data the last piece of data is overwritten causing the file to remain 2 lines long.
Every time I click Button1 I want it to send to file all the previous data captured.
My.Computer.FileSystem.WriteAllText("C:\Users\Michael\Documents\University\Application Programming\Assignment\Logs\AuditLog.htm", "<table border=1 width=100%> <tr><td> Staff Name </td> <td> Computer Number </td> <td> Fault </td> <td> Assigned Technician </td> <td> Date Submitted </td> </tr> ", False)
My.Computer.FileSystem.WriteAllText("C:\Users\Michael\Documents\University\Application Programming\Assignment\Logs\AuditLog.htm", "<tr> <td> <b> </b>" & StaffName & "</td> <td>" & ComputerNumber & "</td> <td>" & Fault & "</td> <td> " & AssignedTechnician & "</td> <td> " & DateSub & "</tr>", True)
This is where my problem is at. Im thinking I need a for loop of some kind on the second line. But not to sure how to go about it.
Any help appreciated. Thanks.
Look at this code
There more info here and here