I have data file which looks like this image below. File is used by warehouse management software. It is custom-made software build with C or Assembler (I believe). It runs on windows machine. This file contains information such as what item is in which shop and how many of items are left.
I'm building e-shop and my task is to connect this application with e-shop. To show if item is available or not.
File has extension of .san and I haven't found anything about such extension on Google. Screenshot is from first lines of the file from Notepad++ Hex viewer plugin.
Here is start of the file: https://www.dropbox.com/s/56lpcind56nexua/part1.san?dl=0
php is worst language for such things. I agree. But i have to do web API access to data from this file. It will use only twice per day with crontab, so no problem if it's slow. If you know a way with any other language which I could use on linux or windows - please give your ideas.
Right now I have this PHP script, which tries to read at least partly that file. Script is here: http://pastebin.com/TQGgv5X4
It partly reads data and can tell me if some SKU code is anywhere in file or not. It's better then nothing, but I need to get more information about item like where it is and how many of item is left in shop.
If you need any extra info, please add comments.