Post by morphingstar on Jul 12, 2011 4:40:23 GMT -5
hi
I am new here. Programmed in Basic in the 80ies. Need to design a program that I can not find on the www. (English is not my first language, if text is ambiguous, please ask for clarification).
Problem intro - analogy:
Think of a media player: It has a play list, the player processes files following the list.
Problem intro - actual: I need to design a file copier which copies files from one media to the other, following the specific list given elsewhere, one by one. I don't want to waste your time why I need such a program. Please just accept it. I name the program to be designed FileCopier.
User will:
Create text list, if possible in utf-8 (?) char-code. (öäü, éàè, etc)
FileCopier will ask for 3 locations of data, directory path, under preferences:
Path to list; path to files source, path to files destination. Store this string.
DIMs: process repetition number (0); total lines number {for stop value} (0);
FileCopier will load the list.
FileCopier will count the lines in the list and store the number as a process stop variable, total lines.
FileCopier will read the 1st line in the list and store its process repetition number, in the 1st sequence this is 0, since the process has not yet been repeated.
FileCopier will process a file copy operation from source to destination for the file name read in the list. Then "1" is added to the Process Repetition Number.
The program will read the next line, do similar operations as for the previous line. Optionally it will compare the text to a Preference-Stored character sequence operating as a sequence stopper.
The program will read the next line, do similar operations as for the previous line.
When the Process Stop Variable equals the Repetition Number it will stop, When the "file name" in the line equals the Preference-Stored character sequence the process will stop.
The message "done" will be displayed, probably more elaborate but unimportant here and now.
(Optionally a list printer which will document the process).
Needed program elements (commands), and file names of where they are explained.
For - To, or While - Wend, or similar repeater, need command name.
An array that will hold the file names, a sorting* number, third yet unknown element {must accept text}. Array may be bigger (longer) than the list line number. I consider a csv version, because it is easy to interface with other needs.
Commands required:
A COPY FROM pick up.
A SAVE TO drop down.
Convertor number to text, text to number, just in case.
*Sorting of the csv (comma separated ...) file can be done externally, is not part of the program to be designed.
What I did not find in the documentation:
The kind of array I need.
A copy from command.
A save to command.
The questions I missed :-)
Could you please point me to the files where the answers are given in plain English, and may be write me a sample code for the copy/save operations.
Thank you.
I am absolutely inexperienced in designing GUI, for this need "command line" interface for the user would be sufficient.
W 28; Tue, 2011.07.12; 04:29:17
I am new here. Programmed in Basic in the 80ies. Need to design a program that I can not find on the www. (English is not my first language, if text is ambiguous, please ask for clarification).
Problem intro - analogy:
Think of a media player: It has a play list, the player processes files following the list.
Problem intro - actual: I need to design a file copier which copies files from one media to the other, following the specific list given elsewhere, one by one. I don't want to waste your time why I need such a program. Please just accept it. I name the program to be designed FileCopier.
User will:
Create text list, if possible in utf-8 (?) char-code. (öäü, éàè, etc)
FileCopier will ask for 3 locations of data, directory path, under preferences:
Path to list; path to files source, path to files destination. Store this string.
DIMs: process repetition number (0); total lines number {for stop value} (0);
FileCopier will load the list.
FileCopier will count the lines in the list and store the number as a process stop variable, total lines.
FileCopier will read the 1st line in the list and store its process repetition number, in the 1st sequence this is 0, since the process has not yet been repeated.
FileCopier will process a file copy operation from source to destination for the file name read in the list. Then "1" is added to the Process Repetition Number.
The program will read the next line, do similar operations as for the previous line. Optionally it will compare the text to a Preference-Stored character sequence operating as a sequence stopper.
The program will read the next line, do similar operations as for the previous line.
When the Process Stop Variable equals the Repetition Number it will stop, When the "file name" in the line equals the Preference-Stored character sequence the process will stop.
The message "done" will be displayed, probably more elaborate but unimportant here and now.
(Optionally a list printer which will document the process).
Needed program elements (commands), and file names of where they are explained.
For - To, or While - Wend, or similar repeater, need command name.
An array that will hold the file names, a sorting* number, third yet unknown element {must accept text}. Array may be bigger (longer) than the list line number. I consider a csv version, because it is easy to interface with other needs.
Commands required:
A COPY FROM pick up.
A SAVE TO drop down.
Convertor number to text, text to number, just in case.
*Sorting of the csv (comma separated ...) file can be done externally, is not part of the program to be designed.
What I did not find in the documentation:
The kind of array I need.
A copy from command.
A save to command.
The questions I missed :-)
Could you please point me to the files where the answers are given in plain English, and may be write me a sample code for the copy/save operations.
Thank you.
I am absolutely inexperienced in designing GUI, for this need "command line" interface for the user would be sufficient.
W 28; Tue, 2011.07.12; 04:29:17