yojimbos_law
New member
Basically, I just want file_to_map() to allow the second argument to be a string (or buffer if that's important for practical applications for reasons I don't fully understand) and have that string's value be the text of the specified file. I'm not sure if that's harder to implement than a file_to_string() function that'd behave similarly.
In case context helps, I'm writing a session log parser for sharing ascensions in ASH (i.e. ALV except not requiring an external program to use or a compiler to edit), but the inability to specify a starting point for a range of days in session_logs() makes it infeasible/inefficient to parse particularly old sessions. As far as I can tell, the only way to access old session logs in ASH currently is to fill a string[int] map with all session logs between the start of the ascension and the present day.
Maybe there's a way to do either this currently (without pre-parsing the file in an external text editor to give it some mappy structure or another), but I haven't been able to figure out a way to do it after extensive testing, wikiing, asking around, and googling.
In case context helps, I'm writing a session log parser for sharing ascensions in ASH (i.e. ALV except not requiring an external program to use or a compiler to edit), but the inability to specify a starting point for a range of days in session_logs() makes it infeasible/inefficient to parse particularly old sessions. As far as I can tell, the only way to access old session logs in ASH currently is to fill a string[int] map with all session logs between the start of the ascension and the present day.
Maybe there's a way to do either this currently (without pre-parsing the file in an external text editor to give it some mappy structure or another), but I haven't been able to figure out a way to do it after extensive testing, wikiing, asking around, and googling.