Thread: Scanning of filename_i.dat files with i=1:N in a C code.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2019
    Posts
    1

    Scanning of filename_i.dat files with i=1:N in a C code.

    hello experts,
    I have a quick question regarding the scanning a certain amount of .dat files. What I have is a list of table as follow:

    S809_1.dat
    S809_2.dat
    S809_3.dat
    S809_4.dat

    made of 4 columns of floating elements as you can see in the attachment.


    What I want to do now is to automate the process, because I want to import N similar .dat files. So, I want to import N table made like:

    S809_1.dat
    S809_2.dat
    S809_3.dat
    S809_4.dat
    ...
    ...
    ...
    S809_N.dat

    Is there a fast way to do it? or do I have to import table by table using N fscanf in the same way I was doing?

    Thank you in advance.
    Attached Images Attached Images Scanning of filename_i.dat files with i=1:N in a C code.-screenshot-2019-08-22-18-20-23-png 

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. scanning numbers in files into arrays
    By pepelepew in forum C Programming
    Replies: 3
    Last Post: 11-12-2009, 05:24 AM
  2. need some help in scanning files in database
    By d4xyjen in forum C Programming
    Replies: 3
    Last Post: 08-15-2009, 05:13 PM
  3. scanning text files
    By deleeuw in forum C++ Programming
    Replies: 5
    Last Post: 08-23-2002, 03:18 PM
  4. header files and code files..
    By CompiledMonkey in forum C++ Programming
    Replies: 4
    Last Post: 02-15-2002, 09:35 AM

Tags for this Thread