Want this question answered?
program to extract a given word from a file
I suggest something like this:* Open file1 and file2 * Create a temporary output file, for writing * Read a line from file1, write it into the output file * Read a line from file2, write it into the output file * Repeat the previous two steps, while you are not at end-of-file in either of the two files * At this point, if you are NOT at end-of-file in file1, read the remaining lines of file1, and write them to the output (you can write a loop for this). * Similarly, if you are NOT at end-of-file in file2, read and write the remaining file. * Close file1, file2, and the output file. * Copy the temporary output file back to file1 * Erase the temporary output file
Opening a file...for writing!
Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.
write a c program that takes a binary file as input and finds error check using different mechanisms.
program to extract a given word from a file
I suggest something like this:* Open file1 and file2 * Create a temporary output file, for writing * Read a line from file1, write it into the output file * Read a line from file2, write it into the output file * Repeat the previous two steps, while you are not at end-of-file in either of the two files * At this point, if you are NOT at end-of-file in file1, read the remaining lines of file1, and write them to the output (you can write a loop for this). * Similarly, if you are NOT at end-of-file in file2, read and write the remaining file. * Close file1, file2, and the output file. * Copy the temporary output file back to file1 * Erase the temporary output file
#!/bin/sh wc -lw "$1"
Opening a file...for writing!
Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.
Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo,
You don't need a script, just use the 'wc' command: # Lines wc -l <file> # Words wc -w <file>
#!/bin/bash rm -rf *
It shouldn't make significant difference, only if the matrix is huge -- in that case you shouldn't store it in memory.
write a c program that takes a binary file as input and finds error check using different mechanisms.
not yet found
data file