what is the path the file system location where SMS messages stored?
In CM11 (Android KitKat) when using stock messaging app the database file is located at:

/data/data/com.android.providers.telephony/databases/mmssms.db

Note that it's not a text file, it's a sqlite database file which needs to be accessed via sqlite-capable front-end (such as sqlite command line client).