title: Why do I keep getting a "warning skipping unreadable file" message with Gnuplot when plotting a .dat file I made using Fortran?
body: <p>Here is the code</p>
  
  <pre><code>program plotting
  implicit none
  real, parameter :: pi = 3.141592
  integer, parameter :: n=100
  real, dimension(1:n) :: x,y
  real :: a=0.0, b= 2*pi
  real :: increment
  integer:: i
  
  increment = (b-a)/(real(n)-1)
  
  x(1) = 0.0
  
  do i =2 , n
    x(i) = x(i-1) + increment
  end do
  
  y = sin(x)
  
  
  open(unit=25, file='sineplot.dat')
  do i=1, n
    write(25, *)  x(i), y(i)      
  end do
  
  close (unit=25)
  
  end program
  </code></pre>
  
  <p>But then when I go into GNU plot and type in :
  plot 'sineplot.dat' using 1:2</p>
  
  <p>The following message displays:
  Warning skipping unreadable file "sineplot.dat"
  No data in plot</p>
  
  <p>I've checked the data file and it looks correct, I am thinking that the problem is the terminal type, it is set to the default 'wxt' but I don't know if this is what I should be using for this problem using windows 8.1.</p>