Thread: Writing to other files

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Registered User
    Join Date
    Apr 2009
    Location
    Russia
    Posts
    116
    Quote Originally Posted by Liz320
    I have a rather complex program where I need to pull in data from a website using loops, direct that data to an output file for calculations and then direct everything to another file for raw data which will then be used for a different program.
    It needs two parts, first part (program or the script) for the downloading a file and the program for the processing and saving

    for the first part you can use php (but you should read help for it because it has very many differences from C, so there is hard to get any character from a string because it is not an array of chars and so on)
    but it is flexible for the work with the web and can [ process+ ] save data to the file
    bash works only under linux (only in bash at any system, what it will use ? wget ? wget is not uniform too) and php can be both in linux and windows (for windows installation takes ten megabytes)

    then, when you have good data on your disk, you can apply main program to them
    so, if you use wget it can have sets, this sets can be changed by the user at any time and so ? your program will stop, because will not find the downloaded file (i.e. we need to make check for the setting of wget)

    Code:
    -r recursive
    you know it will save the pictures, ok do you want pictures ? no ? so you should include picture exclusion to the script, and .js and .css

    you can make only the tree from the file and then load it with processing
    Last edited by c.user; 05-20-2009 at 11:47 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with writing to files
    By beanroaster in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2007, 12:21 AM
  2. Reading & Writing files (Error)
    By Blackroot in forum C++ Programming
    Replies: 9
    Last Post: 01-10-2006, 11:55 AM
  3. Writing files to a CD
    By SyntaxBubble in forum Windows Programming
    Replies: 1
    Last Post: 04-16-2003, 04:43 PM
  4. *.COM Files? Writing them?
    By johnc in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 07-11-2002, 01:52 AM
  5. Making files, opening them, and writing to them
    By Unregistered in forum Game Programming
    Replies: 6
    Last Post: 06-18-2002, 09:57 PM