As it turns out, the Truncate function works in both windows and Linux