Raw data in a report
Posted: 11 Jul 2017 02:13
Hi folks,
I am a complete newb with XY scripting. I need to generate a tab separated text file of a huge number of G-office files distributed throughout a file system. As you probably know these files are actually just text files with different extensions.
I am trying to work with two functions - report() and readfile().
What I want is to get each line to have the full path, file name, date modified, and the contents of the file.
What I have done is create a query that gives me a listing of all the files. Then I manually ran the script report(readfile()), which successfully gave me all the contents -- but I don't know which one is which!
As soon as I start adding in the variables for the different fields, it breaks. As soon as I start putting in quotation marks I think it breaks the readfile() function... I think?
Let me know how I can make this work and I will be very appreciative!
Thanks.
I am a complete newb with XY scripting. I need to generate a tab separated text file of a huge number of G-office files distributed throughout a file system. As you probably know these files are actually just text files with different extensions.
I am trying to work with two functions - report() and readfile().
What I want is to get each line to have the full path, file name, date modified, and the contents of the file.
What I have done is create a query that gives me a listing of all the files. Then I manually ran the script report(readfile()), which successfully gave me all the contents -- but I don't know which one is which!
As soon as I start adding in the variables for the different fields, it breaks. As soon as I start putting in quotation marks I think it breaks the readfile() function... I think?
Let me know how I can make this work and I will be very appreciative!
Thanks.