![]() ![]() # by default, iterating over a dictionary will return keys Looking_for = columns # this is what we need to search fr = open(sys.argv, 'r') # source fileįw = open(sys.argv+"/masked_"+sys.argv, 'w') # Target Directory Location This hurts me a lot and I gotta figure-out how to reverse this but anyway, where is my program wrong here? I thought write lines should write lines down the file rather than just write everything to one line. This program wrote all the lines into like one line without any line breaks. The list is a list of pipe delimited lines and the lines should be written to the file like this: 123|GSV|Weather_Mean|hello|joe|43.45īUT it wrote them line this ahhhh: 123|GSV|Weather_Mean|hello|joe|43.45122|GEV|temp_Mean|hello|joe|23.45124|GSI|Weather_Mean|hello|Mike|47.45 ![]() I have a program that writes a list to a file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |