Skip to main content
deleted 4 characters in body
Source Link
John Taylor
  • 6.1k
  • 2
  • 18
  • 36

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. However, I am not able to do this. Could you please show me how to fix it?

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. However, I am not able to do this. Could you please show me how to fix it?

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX 

where XXX denotes numbers. However, I am not able to do this. Could you please show me how to fix it?

deleted 364 characters in body
Source Link
John Taylor
  • 6.1k
  • 2
  • 18
  • 36

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. To do this, first I need to remove the first 3 strings containing words and rows with four columns. However, I am not able to do this. My attempt was the following (assuming that temp.txt is located in the notebook's directory):

file = Drop[Import[ FileNameJoin[{NotebookDirectory[], "temp.txt"}], "Data"], 3] 

with the output file[[1]] containing many non-numeric rows. Could you please show me how to fix it?

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. To do this, first I need to remove the first 3 strings containing words and rows with four columns. However, I am not able to do this. My attempt was the following (assuming that temp.txt is located in the notebook's directory):

file = Drop[Import[ FileNameJoin[{NotebookDirectory[], "temp.txt"}], "Data"], 3] 

with the output file[[1]] containing many non-numeric rows. Could you please show me how to fix it?

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. However, I am not able to do this. Could you please show me how to fix it?

added 64 characters in body
Source Link
John Taylor
  • 6.1k
  • 2
  • 18
  • 36

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. To do this, first I need to remove the first 3 strings containing words and rows with four columns. However, I am not able to do this. My attempt was the following (assuming that temp.txt is located in the notebook's directory):

file = Drop[Import[ FileNameJoin[{NotebookDirectory[], "temp.txt"}], "Data"], 3] 

with the output file[[1]] containing many non-numeric rows. Could you please show me how to fix it?

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. To do this, first I need to remove the first 3 strings containing words and rows with four columns. However, I am not able to do this. My attempt was the following:

file = Drop[Import[ FileNameJoin[{NotebookDirectory[], "temp.txt"}], "Data"], 3] 

with the output file[[1]] containing many non-numeric rows. Could you please show me how to fix it?

Consider a file 'temp.txt' (alternative link). I am trying to import it as a data-file, i.e. in the form

XXX XXX XXX XXX XXX 

where XXX denotes numbers. To do this, first I need to remove the first 3 strings containing words and rows with four columns. However, I am not able to do this. My attempt was the following (assuming that temp.txt is located in the notebook's directory):

file = Drop[Import[ FileNameJoin[{NotebookDirectory[], "temp.txt"}], "Data"], 3] 

with the output file[[1]] containing many non-numeric rows. Could you please show me how to fix it?

Source Link
John Taylor
  • 6.1k
  • 2
  • 18
  • 36
Loading