| 1 |
with Ada.Text_IO; |
| 2 |
|
| 3 |
package TOML.File_IO is |
| 4 |
|
| 5 |
-- Subprograms to load/save TOML files |
| 6 |
|
| 7 |
use all type Ada.Text_IO.File_Mode; |
| 8 |
|
| 9 |
function Load_File (Filename : String) return Read_Result; |
| 10 |
-- Read Filename and parse its content as a TOML document |
| 11 |
|
| 12 |
procedure Dump_To_File |
| 13 |
(Value : TOML_Value; File : in out Ada.Text_IO.File_Type) |
| 14 |
with Pre => Value.Kind = TOML_Table |
| 15 |
and then Ada.Text_IO.Mode (File) in Out_File | Append_File; |
| 16 |
-- Serialize Value and write the corresponding TOML document to File |
| 17 |
|
| 18 |
end TOML.File_IO; |