user40146: First of all, I am using the Feather MO Adalogger from Adafruit with the Ultimate GPS Feather hat to collect some GPS data: time stamp (millisec), GPS Coordinates (latitude & longitude), speed (knots), and altitude (meters). The GPS data is stored on a micro SD card and I have the GPS portion of the code working. The data I want is being stored on the micro SD card. My only problem is that I can't get the data to be appropriately put in columns under their respective "headers". I used .print("\t") after each data type in attempt to tab the data into columns. This worked for the "headers" but not for the data itself. Screenshots and code are below. Thanks in advance!
My txt file: Headers

My text file: working GPS data

Code for Headers

Code for data


user27653: Change the println()s to print()s. Put one println() at the end of the list of data prints.  You want each row of data to not take up more than one line in the text file. A println() starts a new row after printing. 
Also, you’ll want to open the text file in a tabular program like Excel or similar. A plain text editor likely won’t utilize tab characters in the way you like. 

40146: <p>First of all, I am using the Feather MO Adalogger from Adafruit with the Ultimate GPS Feather hat to collect some GPS data: time stamp (millisec), GPS Coordinates (latitude &amp; longitude), speed (knots), and altitude (meters). The GPS data is stored on a micro SD card and I have the GPS portion of the code working. The data I want is being stored on the micro SD card. My only problem is that I can't get the data to be appropriately put in columns under their respective "headers". I used .print("\t") after each data type in attempt to tab the data into columns. This worked for the "headers" but not for the data itself. Screenshots and code are below. Thanks in advance!</p>

<p>My txt file: Headers</p>

<p><a href="https://i.stack.imgur.com/cXkfs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cXkfs.png" alt="Headers in my txt file"></a></p>

<p>My text file: working GPS data
<a href="https://i.stack.imgur.com/l5IfU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l5IfU.png" alt="Data in my txt file"></a></p>

<p>Code for Headers
<a href="https://i.stack.imgur.com/zJiDM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zJiDM.png" alt="headers code"></a></p>

<p>Code for data
<a href="https://i.stack.imgur.com/G8WqV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G8WqV.png" alt="data code"></a></p>
 27653: <p>Change the <code>println()</code>s to <code>print()</code>s. Put one <code>println()</code> at the end of the list of data prints.  You want each row of data to not take up more than one line in the text file. A <code>println()</code> starts a new row after printing. </p>

<p>Also, you’ll want to open the text file in a tabular program like Excel or similar. A plain text editor likely won’t utilize tab characters in the way you like. </p>
