-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save as...(the selected tab, save as opens a window to save to file),…
… Save All(for all the tabs the ones opened from file/reference a file save the content back to the files), Save(save the contents for the selected tab back to the file they come from)
- Loading branch information
1 parent
4617ac3
commit a840ccb
Showing
8 changed files
with
185 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using FastColoredTextBoxNS; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Firedump.core | ||
{ | ||
internal class FileIO | ||
{ | ||
|
||
internal static void Save(FastColoredTextBox tb,string fileName) | ||
{ | ||
try | ||
{ | ||
tb.SaveToFile(fileName, System.Text.Encoding.UTF8); | ||
} | ||
catch (IOException ex) { } | ||
} | ||
|
||
internal static FileInfo FileInfo(string fileName) | ||
{ | ||
try | ||
{ | ||
return new FileInfo(fileName); | ||
} | ||
catch (Exception ex) { } | ||
return null; | ||
} | ||
|
||
internal static string ReadAllText(string fileName) | ||
{ | ||
try | ||
{ | ||
return File.ReadAllText(fileName); | ||
} | ||
catch (Exception ex) { } | ||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.