How to resolve the algorithm File size step by step in the F# programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm File size step by step in the F# programming language
Table of Contents
Problem Statement
Verify the size of a file called input.txt for a file in the current working directory, and another one in the file system root.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm File size step by step in the F# programming language
Source code in the fsharp programming language
open NUnit.Framework
open FsUnit
[<Test>]
let ``Validate that the size of the two files is the same`` () =
let local = System.IO.FileInfo(__SOURCE_DIRECTORY__ + "\input.txt")
let root = System.IO.FileInfo(System.IO.Directory.GetDirectoryRoot(__SOURCE_DIRECTORY__) + "input.txt")
local.Length = root.Length |> should be True
You may also check:How to resolve the algorithm Loops/Do-while step by step in the SAS programming language
You may also check:How to resolve the algorithm Empty string step by step in the Perl programming language
You may also check:How to resolve the algorithm File input/output step by step in the C++ programming language
You may also check:How to resolve the algorithm Null object step by step in the PHL programming language
You may also check:How to resolve the algorithm HTTP step by step in the OCaml programming language