How do you perform a String replace_at in Elixir or Erlang?
For example given this fixed width file:
EmployeeFundMappingID EmployeeID FundID IsActive EntryDate ExitDate ExitTypeID DateCreated CreatedByID DateModified ModifiedByID ConfirmedBy DateConfirmed GUID IsPooled DatePooled
1 1118544 1 1 2009-04-20 00:00:00.000 NULL NULL 2014-05-17 08:46:48.020 1 2014-10-30 13:34:47.177 NULL 1 2009-04-20 17:48:12.067 NULL NULL NULL
2 1027350 1 1 2008-03-03 00:00:00.000 NULL NULL 2014-05-17 08:46:48.020 1 2014-10-30 13:34:47.177 NULL 1 2008-05-04 15:13:30.303 NULL NULL NULL
3 1024795 1 1 2008-02-29 00:00:00.000 NULL NULL 2014-05-17 08:46:48.020 1 2014-10-30 13:34:47.177 NULL 1 2008-05-04 15:13:30.303 NULL NULL NULL
4 1116497 1 1 2009-03-24 00:00:00.000 NULL NULL 2014-05-17 08:46:48.020 1 2014-10-30 13:34:47.177 NULL 1 2009-03-24 13:00:15.277 NULL NULL NULL
5 1116569 1 1 2009-03-24 00:00:00.000 NULL NULL 2014-05-17 08:46:48.020 1 2014-10-30 13:34:47.177 NULL 1 2009-03-24 14:43:08.280 NULL NULL NULL
6 1116920 1 1 2009-03-27 00:00:00.000 NULL NULL 2014-05-17 08:46:48.020 1 2014-10-30 13:34:47.177 NULL 1 2009-03-27 17:16:35.073 NULL NULL NULL
with col positions at:
[0, 22, 34, 46, 55, 79, 103, 115, 139, 151, 175, 188, 200, 224, 265, 274]
How do we replace \s with \t at each col positions?
I'm effectively trying to convert a Fixed-Width file into a csv