PLEASE NOTE: this server, secure.csse.uwa.edu.au, will be unavailable on WEDNESDAY 7th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  It's UWAweek 49

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying the 6 articles in this topic
Showing 6 of 919 articles.
Currently 1 other person reading this forum.


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
11:46am Wed 5th Oct, ANONYMOUS

Hi, for the first format -> ./trove [-f trovefile] word Is that asking trove to find the absolute pathname of every file in every directory containing the provided word? What role does the optional trove-file input play in this scenario? If it is provided I suppose it would limit the amount of files we need to open and read because as long as it still exists we can just keep it in the new trove-file correct? Thanks


SVG not supported

Login to reply

👍?
helpful
11:48am Wed 5th Oct, Christopher M.

It searches for the requested word, reading from the previously built trove-file.


SVG not supported

Login to reply

👍?
helpful
11:51am Wed 5th Oct, ANONYMOUS

Right okay, and if no trove-file is provided do we look for a file matching the default name and if that doesn't exist search everything?


SVG not supported

Login to reply

👍?
helpful
11:53am Wed 5th Oct, Christopher M.

ANONYMOUS wrote:
> Right okay, and if no trove-file is provided do we look for a file matching the default name and if that doesn't exist search everything?
If no trove-file is given on the command-line, you use the default trove-file name. Watch the sample video.


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful
12:03pm Mon 10th Oct, ANONYMOUS

"Christopher McDonald" <ch*i*.*c*o*a*[email protected]*a*e*u*a*> wrote:
> It searches for the requested word, reading from the previously built trove-file.
Hi Chris, Regarding what you said about the trove-file: do we 'input' the real pathnames of the relevant files into a trove-file and return the contents of this trove-file? The project description says: "the filenames stored in the trove-file should be absolute pathnames" which means we return the trove-file contents, right? Can we choose any file type for the trove-file to write these absolute pathnames into, as the project sheet mentions that the trove-file "does not have to be, a text-file"? Thank you.


SVG not supported

Login to reply

👍?
helpful
12:15pm Mon 10th Oct, Christopher M.

ANONYMOUS wrote:
> Regarding what you said about the trove-file: do we 'input' the real pathnames of the relevant files into a trove-file and return the contents of this trove-file? The project description says: > "the filenames stored in the trove-file should be absolute pathnames" which means we return the trove-file contents, right?
Yes, you *write* absolute pathnames into the trove-file.
> Can we choose any file type for the trove-file to write these absolute pathnames into, as the project sheet mentions that the trove-file "does not have to be, a text-file"?
In yellow highlighted text, the project sheet says "there is no required format for the trove-file". You choose.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy