using System;
using System.Collections.Generic;
using System.IO;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
// Prompt for the text file path
string textFilePath = BFS.Dialog.GetUserInput("Paste in the path to the text file", "");
textFilePath = textFilePath.Replace("\"", "");
// Put each line from the text file into an array
string[] textFileImport = File.ReadAllLines(textFilePath);
// Loop through the array and create each line as a Pinned Item
foreach (string line in textFileImport)
{
BFS.ClipboardFusion.CFOSavePinnedText(line);
}
// Leave the clipboard as-is
return null;
}
}