Skip to content

Commit

Permalink
Change output file from dos format to unix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Pauley committed Dec 14, 2012
1 parent c2ff245 commit 0d3488d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erlang/stevenswart/hollingberries.erl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ for_loop(N, Length, _Inc, _SellPrice, _Year, _Month, _Day, _ProductDescription,

for_loop(N, Length, _Inc, SellPrice, Year, Month, Day, ProductDescription, Io_device) ->
%% io:format("R~8.2f~B/~2..0B/~2..0B~s~n",[SellPrice,Year,Month,Day,ProductDescription]),
OutputLine = io_lib:format("R~8.2f~B/~2..0B/~2..0B~s\r~n",[SellPrice,Year,Month,Day,ProductDescription]),
OutputLine = io_lib:format("R~8.2f~B/~2..0B/~2..0B~s~n",[SellPrice,Year,Month,Day,ProductDescription]),
io:format(OutputLine),
file:write(Io_device,OutputLine),
for_loop(N+_Inc, Length, _Inc, SellPrice, Year, Month, Day, ProductDescription, Io_device).
Expand Down

0 comments on commit 0d3488d

Please sign in to comment.