This can very well be designed using forms, but this should get one started. Use Alt + F11 to see the code, then execute procedure ConvertTbl2Arff to convert a table.
Some highlights of this procedure
– Takes care of spaces in Attribute name and data values
– Finds unique values of nominal variables
– Assigns equivalent ARFF datatype
– Replaces missing values with question marks