infile

Is there an easy way to sort an array of char*'s ? C++

I've got an array of char*'s in a file. The co. I work for stores data in flat files.. Sometimes the data is sorted, but sometimes it's not. I'd like to sort the data in the files. Now I could write the code to do this, from scratch. Is there an easier way? Of course an inplace sort would be the best option. But I'll consider all o...

Using SAS Macro to pipe a list of filenames from a Windows directory

I am trying to amend the macro below to accept a macro parameter as the 'location' argument for a dir command. However I cannot get it to resolve correctly due to the nested quotes issue. Using %str(%') does not work, neither do quoting functions for some reason. The macro will work fine when the filepath has no spaces (eg C:\temp\wit...

changing a program in c, so it takes an optional command line argument *infile*

Now I do have a hw question for everyone...I've been staring at this for a couple of days kind of tinkering and playing around but even with that I end up with a load of errors... What I'm trying to do is take the program below and change it so that it takes an optional command line argument infile. If infile is given, then copy infile ...

SAS - Reading a File Backwards?

I need SAS to read many large log files, which are set up to have the most recent activities at the bottom. All I need is the most recent time a particular activity occurred, and I was wondering if it's possible for SAS to skip parsing the (long) beginning parts of the file. I looked online and found how to read a dataset backwards, but...

LOAD DATA INFILE not working with FIELDS TERMINATED BY

I'm using the sql below in a php script: $sql1 = "LOAD DATA LOCAL INFILE 'test1.csv' INTO TABLE number1 (order_num,pname)"; $sql2 = "LOAD DATA LOCAL INFILE 'test1.csv' INTO TABLE number1 (order_num,pname) FIELDS TERMINATED BY ':'"; if ($result = $mysqli->query($sql)) { printf("<br>Section 4: %s",$mysqli->error); printf("|$result...