Hi
I am reading in text files and i am incrementing a value in each file that is read in. However i need now to check the filenames each time to see if the value should be incremented or not.
Filenames are of the type xyx123-0.01, xyx123-0.02, xyx123-0.03, xyx123-0.04 and then the first part of the filename changes to abc345-0.01 etc.
I need to ensure the values written to each set of 4 are the same. There is also a way to read a value from the file to do this as well but the filename currently looks to be the simplest.
Just had a thought, I suppose the simplest way might be to say if the last chr of the filename is >1 then do not increment. Is that a safe way?
Thanks
Neil
Bookmarks