Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Only in ML not in any other language! Only in ML not in any other language! Please and thank you. strip:(string * string) -> unit

Only in ML not in any other language! Only in ML not in any other language! Please and thank you.

strip:(string * string) -> unit

It will input a file that will be read and a file that will be for writing. The input file will contain multiple lines of text of either integers or non-integers. Your function will write to the output file the same lines of text but with the non-integers removed. Example: file named first.txt and contains: 29, stop, 100, 2, gators, 1991. The output file named second.txt should display only the numbers (29,100,2,1991). Should not know the file in advance so even it's blank it should return a blank output file. Use Int.fromString and TextIO.inputLine to process the integers from the file. No other structures or library functions are allowed without explicit permission. Please any help on this would be appreciated.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

How can a multi-factor risk model be used to rebalance a portfolio?

Answered: 1 week ago

Question

How free does this public see itself to act on this issue?

Answered: 1 week ago