Sample file connection and sample file toString