Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Program to create csv file and write into it Date: Sun, 11 Dec 2016 01:12:40 -0800 Organization: None to speak of Lines: 29 Message-ID: References: <6b201709-fae0-4a06-9783-af485e4040bf@googlegroups.com> <87wpf71pp6.fsf@bsb.me.uk> <08c753c8-4a52-4c95-9d33-15647011cbcf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="d0d5c56ca22fa2e528cedb366e6a556f"; logging-data="5581"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bRgXD5kYNX+EnC2UPPRWU" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:sN/kL3BzLkTH97xeCR8TGv4r3nw= sha1:kFxYelG++hf31oAc4B7Bkr4ctFE= Xref: csiph.com comp.lang.c:98767 Alla _ writes: [...] > (2) no, I don't see any nulls, but I see huge unexpected white spaces in > the part I copied from a file with csv extension (as I see not csv yet); > I assume these white spaces = nulls. Don't assume that. A file whose contents you posted here recently did contain a lot of null characters. My newsreader displayed them as "^@"; someone else's didn't show them, or anything following them, at all (it probably treated the article internally as a null-terminated string). If you want to examine a file and determine whether it contains null characters, you need to use some tool that can view binary files and display their contents in an unambiguous manner. If you're on a Unix-like system, there are a number of options: "od", "hexdump"/"hd", "cat -A". If you're on Windows, there should be some kind of binary file viewer you can install, or an option in whatever text editor you're using. [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"