KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a incomplete csv file that needs to be accurately updated, so there is csv file like this : one,two,three,four,five,six,seven,eight,nine,ten //This is a line(String) Naturally the file is far more complex but in this format, here is what I want to do insert new-word,new-word1, new-word3 or n words between seven and eight(or any range). How can I do that? Pseudo-code,code or example would be great, I don't have a clue how to even start. UPDATE: Maybe I should convert this to array or some kind of datastructure. Then insert new item at the certain position, shift the rest of the content right and do that for each insertion. I don't know if is right way to go or how to begin programming it UPDATE II: Maybe read in csv in the list, split list into two lists, first one ending with seven. Then add n words to first list and join two lists at the end? also don't know how to program this
Tags (comma-separated)
Save Edits
Cancel