Jul-18-2018, 06:36 AM
Hi, can i know how to deal with line that sometimes have 1 input but sometimes have more. Is there any hint on what can i used to deal with this. I have few files, where the inputs varies.
Example:
Example output:
Example:
file_a.txt input a, b, c, d file_b.txt input a input b file_c.txt input a,b,d,e,f,g,add,summI am planning to create a script that can list out the input one by one, line by line.
Example output:
out_a.txt input a input b input c input d out_b.txt input a input b out_c.txt input a input b input d input e input f input g input add input summI am currently manage to work with line that only have one input by using if else condition:
if "input" in line: f0.write(line)