I need some help with a Fortran read statment. I have some files that I need to read data in from, the problem is that I need to read the data from left to right. I first tryied to do a read like this
READ(unit,100) x(i), x(i+1), x(i+2),........
The problem is that there is not the same amount of data in each file so some of my arrays have zero in them which is something I don't want. Can anybody tell me how I can get Fortran to read the data from left to right, here is an example of the data I am reading in.
131. 132. 133. 134. 135. 136.
137. 138. 139. 140. 141. 142.
143. 144. 145. 146. 147. 148.
149. 150. 151. 152. 153. 154.
155. 156. 157. 158. 159. 160.
161. 162. 163. 164. 165. 166.
167. 168. 169. 170. 171. 172.
173. 174. 175. 176. 177. 178.
179. 180. 181. 182. 183. 184.
185. 186. 187.
Thnaks in advance
READ(unit,100) x(i), x(i+1), x(i+2),........
The problem is that there is not the same amount of data in each file so some of my arrays have zero in them which is something I don't want. Can anybody tell me how I can get Fortran to read the data from left to right, here is an example of the data I am reading in.
131. 132. 133. 134. 135. 136.
137. 138. 139. 140. 141. 142.
143. 144. 145. 146. 147. 148.
149. 150. 151. 152. 153. 154.
155. 156. 157. 158. 159. 160.
161. 162. 163. 164. 165. 166.
167. 168. 169. 170. 171. 172.
173. 174. 175. 176. 177. 178.
179. 180. 181. 182. 183. 184.
185. 186. 187.
Thnaks in advance