Posted 12 June 2015 - 09:50 PM
Code first - Link
my "problem" comes at line 26 and that entire function i havent written to end yet, as i got stuck
im making a program for my power monitoring (and soon to be button controlled aswell)
i would like to be able to change the amount of capacitor banks while the program is running.
but the problem is, im keeping the amount of capacitorbanks in a seperate file (only way i could get the damn thing to work, without writing the amount each time)
so i cant delete this file, while the program is running, to change the amount (was my first thought)
next thought was to delete the content and rewrite it, but that again, gets my program to error out (tried)
so could i "replace" the entire file without the program giving me an error, or is there an approach i forgot to look at
my "problem" comes at line 26 and that entire function i havent written to end yet, as i got stuck
im making a program for my power monitoring (and soon to be button controlled aswell)
i would like to be able to change the amount of capacitor banks while the program is running.
but the problem is, im keeping the amount of capacitorbanks in a seperate file (only way i could get the damn thing to work, without writing the amount each time)
so i cant delete this file, while the program is running, to change the amount (was my first thought)
next thought was to delete the content and rewrite it, but that again, gets my program to error out (tried)
so could i "replace" the entire file without the program giving me an error, or is there an approach i forgot to look at