-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save edited decision table #9
Labels
editor
Decision table editor
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Comments
Use case
Implementation proposal
Some Rust tips from ChatGPT 😀Saving filesuse std::fs::File;
use std::io::Write; // Import the Write trait
fn main() -> std::io::Result<()> {
// Create or open the file
let mut file = File::create("output.txt")?;
// Write the text to the file
file.write_all(b"Hello, Rust!")?;
// Optional: Add a newline
file.write_all(b"\n")?;
// Return Ok if everything is fine
Ok(())
} Joining text slicesfn main() {
let lines = vec!["Line 1", "Line 2", "Line 3"];
let joined = lines.join("\n");
println!("{}", joined);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
editor
Decision table editor
good first issue
Good for newcomers
help wanted
Extra attention is needed
Add saving option.
Under the
ctrl+s
key combination there should be an action of saving the edited decision table to the file.The text was updated successfully, but these errors were encountered: