I take my confirmation back... This program does exactly what it is asked
for!
Here is the program
procedure main ()
local infile, in, out, outfile, line
infile := "c:\\Users\\Edward Feustel\\My Documents\\Deuce.csv"
in := open(infile,"r")
outfile := "c:\\Users\\Edward Feustel\\My Documents\\Deuce1.csv"
out := open(outfile, "wa")
while line := read(in) do write (out, line)
close(out)
close(in)
end
We were seeing a hung program with Deuse1.csv of size zero because open()
fails. which causes read() to be only waiting for stdin to what appears like
a hung at the first look.
I re-tested this again on Linux and on Windows and it worked fine in both
cases. No I\O problems. I also tested with both the file name and the file
path containing blanks and again it worked on both Windows and Linux.
Phew! and I thought we have a broken build!
Sorry for the confusion and for the false Alarm this morning!
-Jafar
On Mon, Jul 18, 2011 at 11:33 AM, Jafar Al-Gharaibeh <[email protected]>wrote:
>
> On Mon, Jul 18, 2011 at 8:35 AM, Edward Feustel <[email protected]>wrote:
>
>> This is on Windows 7 Pro (64) with a blank embedded user name and
>> a file in "My Documents". Code is attached.
>>
>> Compilation in the IDE works OK. Running the program on:
>> Deuce.csv (attached) does not complete and produces Deuce1.csv
>> with zero length. If it closed the file as it should, then perhaps
>> something
>> would be there.
>>
>> The console remains open.
>>
>
>
> Confirmed! and reproduces on Linux also.
>
>
>> I am fairly certain that this works correctly under the 18Mb older version
>> of
>> Unicon.
>>
>>
> You are correct, we have done a fair amount of global changes recently to
> simplify Windows builds. That involves mainly I/O changes. So this problem
> would be only in the last release. (12 and 11.9.1)
>
> We will have a fix in a day or two.
>
> Thanks a lot Ed!
>
> -Jafar
>
>
>
>
>> I'll try to get back to it Wednesday to provide more information.
>> Ed
>>
>>
>>
>> ------------------------------------------------------------------------------
>> AppSumo Presents a FREE Video for the SourceForge Community by Eric
>> Ries, the creator of the Lean Startup Methodology on "Lean Startup
>> Secrets Revealed." This video shows you how to validate your ideas,
>> optimize your ideas and identify your business strategy.
>> http://p.sf.net/sfu/appsumosfdev2dev
>> _______________________________________________
>> Unicon-group mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/unicon-group
>>
>>
>
>
> --
> "Let there be no compulsion in religion: Truth stands out clear from error"
> [The Holy Qur'an 2:256]
>
> "Injustice anywhere is a threat to justice everywhere" Dr. King
>
--
"Let there be no compulsion in religion: Truth stands out clear from error"
[The Holy Qur'an 2:256]
"Injustice anywhere is a threat to justice everywhere" Dr. King
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group