Skip to content

Commit

Permalink
outputs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
saturn77 committed Dec 2, 2020
1 parent be4eb0f commit 16b5d7b
Show file tree
Hide file tree
Showing 6 changed files with 2,901 additions and 2,900 deletions.
2,881 changes: 0 additions & 2,881 deletions data.txt

This file was deleted.

14 changes: 7 additions & 7 deletions examples/gen_vishay_resistor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ fn main() -> std::io::Result<()> {
.write(true)
.create(true)
.truncate(true)
.open("data.txt")
.open("./outputs/data.txt")
.expect("cannot open file");

file.write_all("Part, Description, Value, Case, Power, Supplier 1, Supplier Part Number 1, Library Path, Library Ref, Footprint Path, Footprint Ref, Company, Comment \r\n".as_bytes()).expect("write failed");
file.write_all("Part,Description,Value,Case,Power,Supplier 1,Supplier Part Number 1,Library Path,Library Ref,Footprint Path,Footprint Ref,Company,Comment \r\n".as_bytes()).expect("write failed");

file.write_all(name_0402.as_bytes()).expect("write failed");
println!("** Success::0402 resistor generation.\r\n");
println!("** Success::0402 resistor E-96 series generation (1 Ohm to 1 MOhm).\r\n");

//--------------------------------------------------------------

Expand All @@ -147,7 +147,7 @@ fn main() -> std::io::Result<()> {
//println!("{ }",name_0603)
}
file.write_all(name_0603.as_bytes()).expect("write failed");
println!("** Success::0603 resistor generation.\r\n");
println!("** Success::0603 resistor E-96 series generation (1 Ohm to 1 MOhm).\r\n");

//--------------------------------------------------------------

Expand All @@ -157,7 +157,7 @@ fn main() -> std::io::Result<()> {
//println!("{}",name_0805);
}
file.write_all(name_0805.as_bytes()).expect("write failed");
println!("** Success::0805 resistor generation.\r\n");
println!("** Success::0805 resistor E-96 series generation (1 Ohm to 1 MOhm).\r\n");

//--------------------------------------------------------------

Expand All @@ -167,7 +167,7 @@ fn main() -> std::io::Result<()> {
//println!("{}",name_0805);
}
file.write_all(name_1206.as_bytes()).expect("write failed");
println!("** Success::1206 resistor generation.\r\n");
println!("** Success::1206 resistor E-96 series generation (1 Ohm to 1 MOhm).\r\n");

//--------------------------------------------------------------

Expand All @@ -177,7 +177,7 @@ fn main() -> std::io::Result<()> {
//println!("{}",name_0805);
}
file.write_all(name_1210.as_bytes()).expect("write failed");
println!("** Success::1210 resistor generation.\r\n");
println!("** Success::1210 resistor E-96 series generation (1 Ohm to 1 MOhm).\r\n");

//--------------------------------------------------------------
Ok(())
Expand Down
1 change: 1 addition & 0 deletions outputs/.~lock.data.xlsx#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,DESKTOP-E366DH3/james,DESKTOP-E366DH3,02.12.2020 17:51,file:///C:/Users/james/AppData/Roaming/LibreOffice/4;
Loading

0 comments on commit 16b5d7b

Please sign in to comment.