Question: make a program [in F#] fileReplace : string -> needle : string -> replace: string -> unit which replaces all occurrences of the needle argument

make a program [in F#]

 fileReplace : string -> needle : string -> replace: string -> unit

which replaces all occurrences of the needle argument with the replace argument in the file with name filename. The solution must as a minimum use the functions System.IO.File.OpenText, ReadLine and WriteLine to access the files. A short test must be included and a short description of the solution with arguments for larger design choices taken to reach the given solution

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!