saveString function
Save file as string to location
Implementation
Future<void> saveString({
required String printName,
required String fileType,
required String bytes,
required String path,
bool isBytes = true
}) async {
await File('$path/$printName.$fileType').writeAsString(bytes);
}