@GaG Thank you for your help. Till now i found my way to manage easy csv tasks , since csv files are just text with comma for change column, and new lines for change row i can deal this on BAS by creating lists from "Read File to List" and then i can break each list item from "Parse string" with comma as separator. Then i use "Write File" for saving and i can live visualize the edited results on the csv file with a program called "Modern CSV". Thing is that on more advanced scripts i have big CSV files with a lots of rows and columns , sometimes i must to constant return to BAS the index position of partial value search terms on those files. I have found also an alternative way to manage by creating and executing a bat file with call for python for converting csv to xlsx and then i may use "module Excel" that haves all the actions im looking for, but Im wondering why BAS haves those actions only for xslx files, why not for csv also? Anyways till now im very satisfied to BAS but i might need more help in the future on this matter.
How do I delete a line from a file after use in a for loop, but the thread doesn't end?
-
I'm trying to use lines from a file which should change after each run, but it seems like the built in functionality for this only works if the thread ends and doesn't work when I use it in a for loop. I fixed this issue by loading the file into a list then using the first element of the list as a variable and then deleting that variable after using it for something. The problem with this is that when using more than 1 thread, since the lines aren't actually deleted from the thread and it's just parts of the list being deleted, the program is returning like 4 or 5 of the same outputs. tldr: How do I delete a line from a file after using it(in a for-loop, and without the thread ending)?
-
@T9 did you find the answer? did you solve it?
-
For multithreading you should use resources. There are additional
settings for each resource, just double click it inside resources pane.
There you can fine tune your settings to achieve desirable behavior.In your case you should set resource to use each line only once,
and set max symultanious usages to 1. Check other settiings too
to make it work the way you want.