mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 21:40:52 -05:00 
			
		
		
		
	Restore rfile2.f
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@1622 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									fad808bcbf
								
							
						
					
					
						commit
						3bf4cbde0c
					
				
							
								
								
									
										2
									
								
								map65.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								map65.py
									
									
									
									
									
								
							@ -1,4 +1,4 @@
 | 
				
			|||||||
#-------------------------------------------------------------------- MAP65
 | 
					#------------------------------------------------------------------- MAP65
 | 
				
			||||||
# $Date$ $Revision$
 | 
					# $Date$ $Revision$
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
from Tkinter import *
 | 
					from Tkinter import *
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										26
									
								
								rfile2.f
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								rfile2.f
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					      subroutine rfile2(fname,buf,n,nr)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					C  Read data from disk.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      integer RMODE
 | 
				
			||||||
 | 
					      parameter(RMODE=0)
 | 
				
			||||||
 | 
					      integer*1 buf(n)
 | 
				
			||||||
 | 
					      integer open,read,close
 | 
				
			||||||
 | 
					      integer fd
 | 
				
			||||||
 | 
					      character fname*(*)
 | 
				
			||||||
 | 
					      data iz/0/                            !Silence g77 warning
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      do i=80,1,-1
 | 
				
			||||||
 | 
					         if(fname(i:i).ne.' ') then
 | 
				
			||||||
 | 
					            iz=i
 | 
				
			||||||
 | 
					            go to 10
 | 
				
			||||||
 | 
					         endif
 | 
				
			||||||
 | 
					      enddo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 10   fname=fname(1:iz)//char(0)
 | 
				
			||||||
 | 
					      fd=open(fname,RMODE)                  !Open file for reading
 | 
				
			||||||
 | 
					      nr=read(fd,buf,n)
 | 
				
			||||||
 | 
					      i=close(fd)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      return
 | 
				
			||||||
 | 
					      end
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user