Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to read multiple files in a loop in python

import numpy as np
files = ["a.txt", "b.txt"]
for file in files:
  print(np.loadtxt(file, skiprows=1))
 
PREVIOUS NEXT
Tagged: #read #multiple #files #loop #python
ADD COMMENT
Topic
Name
7+4 =