www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2301] New: std.file.read error

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301

           Summary: std.file.read error
           Product: D
           Version: 2.018
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davesun 126.com


hello ,I write the codes as follows:

import std.stdio;
import std.file;
int main()
{
        string contents = "%%";
        std.file.write("test.txt",contents);
        string  chars = cast(string)std.file.read("test.txt");
        writefln(chars);
        return 0;
}

the output string is:
%

I think the result should be "%%"


-- 
Aug 21 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301


andrei metalanguage.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from andrei metalanguage.com  2008-08-21 22:37 -------
The program is behaving correctly. Change "writefln" to "writeln" to get the
behavior you want.


-- 
Aug 21 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301


fvbommel wxs.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|murpsoft hotmail.com,       |
                   |ebaklund hotmail.com,       |
                   |schaouette free.fr,         |
                   |lsina 126.com,              |
                   |asharma newgen.co.in,       |
                   |rayerd.wiz gmail.com,       |
                   |gdefty attglobal.net,       |
                   |brad dsource.org,           |
                   |arthur.loiret gmail.com,    |
                   |grahamc001uk yahoo.co.uk,   |
                   |eric96 gmail.com            |
                 CC|jarrett.billingsley gmail.co|
                   |m, zap1662000 yahoo.com,    |
                   |me teqdruid.com,            |
                   |icibiri chello.sk,          |
                   |babele.dunnit gmail.com,    |
                   |johannes erdfelt.com, d-    |
                   |issues rameria.de,          |
                   |dsimcha yahoo.com,          |
                   |mr.emran gmail.com,         |
                   |hasan.aljudy gmail.com,     |
                   |temi_dennnis yahoo.ca       |
                 CC|rodolfo.borges gmail.com,   |
                   |emmanuel.rodriguez gmail.com|
                   |, danijans03 student.kau.se,|
                   |fdp mcs.be,                 |
                   |david ferenczi.net,         |
                   |hoytak cs.ubc.ca,           |
                   |Joseph.Gauterin googlemail.c|
                   |om, astrothayne gmail.com,  |
                   |gaboonviper gmx.net,        |
                   |jason spashett.com,         |
                   |bcwhite pobox.com           |
                 CC|hogerun gmai.com,           |
                   |Richards codu.org,          |
                   |cdunn2001 gmail.com,        |
                   |dvdfrdmn users.sf.net,      |
                   |lexzioven2 yahoo.com,       |
                   |dr2daniel yahoo.fr, kamm-   |
                   |removethis incasoftware.de, |
                   |gide nwawudu.com,           |
                   |chrisp inventivedingo.com,  |
                   |peylow gmail.com,           |
                   |onlystupidspamhere yahoo.se |
                 CC|xergen hotmail.com,         |
                   |jwhinfinity yahoo.com,      |
                   |SpottedTiger yahoo.com,     |
                   |kolos80 bk.ru,              |
                   |ig405 zepler.net,           |
                   |darrylbleau gmail.com,      |
                   |ameer_armaly hotmail.com,   |
                   |jeffd gwava.com,            |
                   |iceelyne gmail.com,         |
                   |aaroncraelius gmail.com,    |
                   |ashleymedlock yahoo.com     |
                 CC|Zettablade gmail.com,       |
                   |huangl tfol.net,            |
                   |lijat.me gmail.com,         |
                   |MaassG web.de,              |
                   |nairolf online.de,          |
                   |fawzi gmx.ch,               |
                   |andy.somerville gmail.com,  |
                   |hhasemann web.de,           |
                   |brianhsu.hsu gmail.com,     |
                   |dheld codelogicconsulting.co|
                   |m, amdmi3 amdmi3.ru,        |
                   |mrmocool gmx.de             |
                 CC|gamerChad gmail.com,        |
                   |dominic.letz berlin.de,     |
                   |christian.s77 gmail.com,    |
                   |lightninglike 126.com,      |
                   |chris dprogramming.com,     |
                   |tazz gmx.at,                |
                   |hennrich.bloebaum gmx.de,   |
                   |htvennik zonnet.nl,         |
                   |georg op-co.de,             |
                   |jbnorden hotmail.com,       |
                   |chandora mskcc.org          |
                 CC|felipe.contreras gmail.com, |
                   |akaquinn hotmail.com,       |
                   |ch lathspell.de,            |
                   |frank frankhirsch.net,      |
                   |clugdbug yahoo.com.au,      |
                   |diggory.hardy gmail.com,    |
                   |rael zopyra.com,            |
                   |daniel benamy.info,         |
                   |ryg gmx.net,                |
                   |dmd mailinator.com,         |
                   |jaroslav.kroft seznam.cz,   |
                   |jlquinn us.ibm.com          |
                 CC|diablotail yahoo.com,       |
                   |dawid.ciezarkiewicz gmail.co|
                   |m,                          |
                   |enzo.petrelli fastwebnet.it,|
                   |david acz.org,              |
                   |aniketdhamal yahoo.co.in,   |
                   |dick221z yahoo.com,         |
                   |ibisbasenji gmail.com,      |
                   |henrik harmsen.se,          |
                   |mi_emayl_adrez hotmail.com, |
                   |shro8822 vandals.uidaho.edu |
                 CC|kergoth handhelds.org,      |
                   |bmyers harryanddavid.com,   |
                   |anders1 gmail.com,          |
                   |bayo.fr gmail.com,          |
                   |brunodomedeiros+bugz gmail.c|
                   |om, blprice61 yahoo.com,    |
                   |dlang davidb.org,           |
                   |JoelCSalomon Gmail.com,     |
                   |chris edesix.com,           |
                   |franz.schanovsky chello.at, |
                   |jpelcis gmail.com           |
                 CC|davidell earthling.net,     |
                   |a.panek brainsware.at,      |
                   |gobstocker gmail.com,       |
                   |digitalmars-                |
                   |com baysmith.com,           |
                   |andrei metalanguage.com,    |
                   |jgeewax gmail.com,          |
                   |csantander619 gmail.com,    |
                   |bennybyko gmx.de, burton-   |
                   |radons shaw.ca,             |
                   |chbrosso free.fr, Hans-     |
                   |Werner.Krause lycos.de      |
                 CC|daniel.maciel gmail.com,    |
                   |lordsauronthegreat gmail.com|
                   |, boris.kolar globera.com,  |
                   |blholdings easymail.hu,     |
                   |dave.akers gmail.com, e-    |
                   |t172 akegroup.org,          |
                   |joel.bjorkman gmail.com,    |
                   |benoit tionex.de,           |
                   |ar_other mail.ru,           |
                   |wbaxter gmail.com,          |
                   |d jeffmcglynn.com           |
                 CC|Alexander.Blum gmail.com,   |
                   |randleer web.de, bob-       |
                   |w operamail.com,            |
                   |dae1 sdf.lonestar.org,      |
                   |frank-fischer shadow-       |
                   |soft.de, aplee primus.ca,   |
                   |dbenamy gmail.com,          |
                   |ivan.senji gmail.com,       |
                   |bartosz relisoft.com,       |
                   |aziz.kerim gmail.com,       |
                   |charleshixsn earthlink.net  |
                 CC|derek hipgraphics.com,      |
                   |bc_favour yahoo.fr,         |
                   |cristian zerobugs.com,      |
                   |fvbommel wxs.nl,            |
                   |pelekhay gmail.com,         |
                   |barnaby daltonsgate.com,    |
                   |default_357-line yahoo.de,  |
                   |lane downstairspeople.org,  |
                   |jacobrepp gmail.com,        |
                   |clayasaurus gmail.com,      |
                   |dhaffey gmail.com           |
                 CC|destructionator gmail.com,  |
                   |hamad.alwhaibi gmail.com,   |
                   |CppCoder gmail.com,         |
                   |Jesse.K.Phillips+D gmail.com|
                   |, ericanderton yahoo.com,   |
                   |eriklovlie gmail.com,       |
                   |a.solovey gmail.com,        |
                   |itouh2 hotmail.com,         |
                   |ary esperanto.org.ar,       |
                   |adz21c googlemail.com       |
                 CC|jason.james.house gmail.com,|
                   |andkhropov mtu-net.ru,      |
                   |redsea 163.com,             |
                   |braddr puremagic.com,       |
                   |georg.ramme gmail.com,      |
                   |joymike_02 yahoo.com,       |
                   |Daniel919 web.de,           |
                   |douglas_goodall mac.com,    |
                   |golovanov_alexey mail.ru,   |
                   |adolf.mathias googlemail.com|
                   |, bwerf xs4all.nl           |
                 CC|egorst gmail.com,           |
                   |dhasenan gmail.com,         |
                   |theos list.ru,              |
                   |a.panek brainsware.org,     |
                   |davidl 126.com,             |
                   |dbiehl gmx.net,             |
                   |ddaglas gmail.com,          |
                   |d chqrlie.org,              |
                   |dl.soluz gmx.net,           |
                   |jlquinn optonline.net,      |
                   |cristian zerobugs.org,      |
                   |jeffdavey submersion.com,   |
                   |elmar zandere.de            |
                 CC|caron800 googlemail.com,    |
                   |lugaidster gmail.com,       |
                   |dsstruthers yahoo.com,      |
                   |bane 3dnet.co.yu,           |
                   |d brian.codekitchen.net,    |
                   |amaury.pouly gmail.com,     |
                   |tortoise_74 yahoo.co.uk,    |
                   |i.kasiuk gmx.de,            |
                   |jddcef gmail.com,           |
                   |diboss hotmail.com,         |
                   |Bernd.Donner gmx.net        |
                 CC|jetbird gmail.com,          |
                   |elite01 gmx.de,             |
                   |charles jwavro.com,         |
                   |rpgfan3233 gmail.com,       |
                   |hohums gmail.com,           |
                   |hogerun gmail.com,          |
                   |dkm4i1 gmail.com,           |
                   |dw botanicus.net,           |
                   |johnwilliams_005 yahoo.com, |
                   |afb algonet.se,             |
                   |godaves yahoo.com,          |
                   |ddparnell bigpond.com,      |
                   |yanikibo gmail.com          |
                 CC|fgretief gmail.com,         |
                   |jascha mainia.de,           |
                   |daniel.keep+d.puremagic.com |
                   |gmail.com                   |




------- Comment #2 from fvbommel wxs.nl  2008-08-22 10:04 -------
It's not nice to spam people.


-- 
Aug 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301


andrei metalanguage.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aaroncraelius gmail.com




------- Comment #3 from andrei metalanguage.com  2008-08-22 10:11 -------
(In reply to comment #2)
 It's not nice to spam people.
 

I didn't. Accusing people without reason would also not be nice, so let's see. If they are in the "Add CC" box by default, I could only assume they were interested in getting emails. Should I remove everyone from the CC box, or did I press the wrong button somewhere in the process? For all I know, I used all defaults, marked the issue as invalid, wrote in this box, and committed. Please advise. --
Aug 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301





------- Comment #4 from wbaxter gmail.com  2008-08-22 11:53 -------
(In reply to comment #3)
 (In reply to comment #2)
 It's not nice to spam people.
 

I didn't. Accusing people without reason would also not be nice, so let's see.

Not you, Andrei. It must have been Davesun, the original poster of the bug. Probably an innocent mistake. --
Aug 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301





------- Comment #5 from jarrett.billingsley gmail.com  2008-08-22 11:58 -------
I was wondering why I was getting mails about this bug.


-- 
Aug 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301


bob-w operamail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|aaroncraelius gmail.com,    |bob-w operamail.com
                   |davesun 126.com             |




------- Comment #6 from bob-w operamail.com  2008-08-23 08:26 -------
Ever since I have subscribed to d.puremagic.com I am getting spam mail. The
nice thing is that I am now offered millions of $$$ every week from Nigerian
banks and the like instead of Viagra and Rolex. So finally something I really
need ...


-- 
Aug 23 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2301


bob-w operamail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|bob-w operamail.com         |




------- Comment #7 from bob-w operamail.com  2008-08-23 08:39 -------
Just trying to remove my email address ...


-- 
Aug 23 2008