Read FileName from a directory
1. A directory contains more number of file. How can i get each file name in a QString till i finished reading all file.
2. What is the process_line(line); Writtern in QFIle example of reading a file.
I am getting a error that:
"process_line undeclared identifier".
Re: Read FileName from a directory
Quote:
Originally Posted by
bismitapadhy
1. A directory contains more number of file. How can i get each file name in a QString till i finished reading all file.
use this
Quote:
Originally Posted by
bismitapadhy
2. What is the process_line(line); Writtern in QFIle example of reading a file.
I am getting a error that:
"process_line undeclared identifier".
it's just an example, i.e. you must write your own process_line or whatever you like to call it.
Re: Read FileName from a directory
Re: Read FileName from a directory
2. process_line is user defined function. you can write own function to process selected file.