Files
AdventOfCode2022/AdventOfCode2022.Test/Assembly.fs
dependabot[bot] 31996a2205 Bump fantomas from 5.2.0-alpha-008 to 6.3.16 in /AdventOfCode2022 (#93)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com>
2024-12-09 08:44:02 +00:00

19 lines
444 B
Forth

namespace AdventOfCode2022.Test
open System.IO
open System.Reflection
[<RequireQualifiedAccess>]
module Assembly =
type private Dummy = class end
let readResource (name : string) : string =
let asm = Assembly.GetAssembly typeof<Dummy>
use stream =
asm.GetManifestResourceStream (sprintf "AdventOfCode2022.Test.Inputs.%s" name)
use reader = new StreamReader (stream)
reader.ReadToEnd ()