← dlang

.git/COMMIT_EDITMSG

bedaac68e20583107816590d1062b19ab7eb90f2 · ovidiucs · Sep 6, 2015 22:24

+1 −1 · 1 file changed

  • exFileRead1.d +1 −1
diff --git a/exFileRead1.d b/exFileRead1.d
index c61b555..cfbe6ff 100644
--- a/exFileRead1.d
+++ b/exFileRead1.d
@@ -6,7 +6,7 @@ void main()
 
    write("What is the file name to read? :");
    string fname = chomp(readln());
-   string outname ~= fnameii,aout;
+   string outname = (fname ~ ".out").idup ;
    File file = File(fname, "r");
    File file_out = File(outname, "w");