Thread: append data to file at file's start

  1. #16
    Registered User
    Join Date
    Oct 2009
    Posts
    17
    grumpy and phantomotap,
    as i stated - finally Excel way will be used, so it is little hard to me to understand Your offensive feelings.
    Anyway - let use case to ask - excluding Excel- what alternative ways for problem, described in first post, can You propose?
    regards

  2. #17
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    I find it distasteful (I'm being really kind.) when newbies say "I'm going to do things my way because this is really just a style issue." when the reality is closer to "I'm going to do things my way because... LOOK SAND!".

    The point to what everyone is saying has nothing to do with "Excel" and everything to do with processing the file on demand when the situation calls for it.

    [Edit]
    In other words, doing the job of making the data presentable should only been done when that data needs to be presented.
    [/Edit]

    You are using "Excel" to do the processing. That is a simple convenience that was suggested because you said you were already using "Excel".

    The simple, easy, and inescapable fact is: you can always write a small program to reverse a file on a per line basis.

    It is a trivial program to code. Heck, many operating systems provide tools that can do this from the command line.

    Anyway, that simple fact alone means that any logging should be done on a strict append basis. It is easy. (You only need to open the file in text mode with the append flag.) It is fast. (Strangely enough, most file systems are really good at appending data.)

    Soma

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How i an append a file and write at its start
    By fredsilvester93 in forum C++ Programming
    Replies: 2
    Last Post: 02-10-2012, 11:22 PM
  2. Append a temp file to a log file
    By Randellk02 in forum C Programming
    Replies: 9
    Last Post: 11-07-2010, 01:46 PM
  3. Append one file to another.
    By guillermoh in forum C Programming
    Replies: 6
    Last Post: 02-04-2008, 12:04 PM
  4. file append
    By rahulsk1947 in forum C Programming
    Replies: 2
    Last Post: 10-30-2007, 01:01 AM
  5. append file?
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 09-27-2001, 08:37 AM