G grafsoft Well-Known Member Licensed User Longtime User Jul 30, 2017 #1 This code works: Dim iss As InputStream iss=File.OpenInput (File.DirAssets,fname) Dim bb(1024) As Byte iss.ReadBytes (bb,23,4) This does not work, "File not found": Dim raf As RandomAccessFile ' Error in the following line raf.initialize (File.DirAssets,fname,True) i=raf.ReadInt (23) Why? The variable fname is the same, I controlled also uppercase letters.
This code works: Dim iss As InputStream iss=File.OpenInput (File.DirAssets,fname) Dim bb(1024) As Byte iss.ReadBytes (bb,23,4) This does not work, "File not found": Dim raf As RandomAccessFile ' Error in the following line raf.initialize (File.DirAssets,fname,True) i=raf.ReadInt (23) Why? The variable fname is the same, I controlled also uppercase letters.
DonManfred Expert Licensed User Longtime User Jul 30, 2017 #2 Check the expected parameters for the initialize method of RandomAccessfile and compare them with the parameters given. ETA: Sorry, i copied the wrong initializemethod Last edited: Jul 30, 2017 Upvote 0
Check the expected parameters for the initialize method of RandomAccessfile and compare them with the parameters given. ETA: Sorry, i copied the wrong initializemethod
G grafsoft Well-Known Member Licensed User Longtime User Jul 30, 2017 #3 My mistake. It is not posssible to open a file in file.dirassets with this object. Thank you. Upvote 0